65,170
社区成员




LRESULT CALLBACK WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case XXX:
return 0;
case YYY:
return 0;
}
DefWindowProc(hWnd, uMsg, wParam, lParam);
}
LRESULT CALLBACK MainWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case ...:
...
default:
DefWindowProc(hWnd, uMsg, wParam, lParam);
}
return TRUE;
}
修改正确后的如下:
LRESULT CALLBACK MainWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case ...:
...
default:
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}
return 0;
}
#define WS_SIZEBOX WS_THICKFRAME