Hello,
In a small Win32 game of mine, I am passing Windows messages to functions instead of handling them in my WndProc, and it works fine with messages like WM_MOUSEMOVE, but WM_COMMAND doesn't seem to work. Am I doing anything wrong?
Thanks.Code:if (Msg.message == WM_COMMAND)
if (LOWORD(wParam) == ID_BUTTON)
if (HIWORD(wParam) == BN_CLICKED)
MessageBox(NULL, TEXT("Testing..."), TEXT("Test"), MB_OK);