Win32 WndProc as class member

前端 未结 3 998
野的像风
野的像风 2021-01-22 06:58

Is there a way to wrap WndProc as private member?

If I have this:

class Window
{
public:
    Window();
    virtual ~Window();
    void create();

private         


        
3条回答
  •  面向向阳花
    2021-01-22 07:11

    Make it static:

    static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
    

提交回复
热议问题