Hello everyone and thank you for taking the time to read my post,
I have this code:
Also, I have hwndCombo initialized right after I create my window. Don't worry, I know it is initialized before WM_COMMAND runs:
My combobox resource is defined as 30000.
Anyways, when I try to compile this code I get this error:
Thanks for any help given.
I have this code:
Code:
case WM_COMMAND: { switch(LOWORD(wParam)) { case hwndCombo: { switch(HIWORD(wParam)) { case CBN_DROPDOWN: { MessageBox(hwnd, "OK", "OK", MB_OK); } break; } break; } break; } break; } break;
Code:
wndCombo = GetDlgItem(hwnd, 30000);
Anyways, when I try to compile this code I get this error:
Code:
`hwndCombo' cannot appear in a constant-expression
Comment