窗口函数WndProc的参数问题
众所周知,Windows的窗口函数是LRESULT CALLBACK WndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)。请问能否把该函数改为LRESULT CALLBACK WndProc(MSG msg)?其中MSG是一个结构,它包含了hWnd等四个数据
------解决方案--------------------typedef struct tagMSG { // msg
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
} MSG;