Fromethius
June 28th, 2007, 01:57 AM
Hello everyone and thank you for taking the time to read my post,
I have this 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;
Also, I have hwndCombo initialized right after I create my window. Don't worry, I know it is initialized before WM_COMMAND runs:
wndCombo = GetDlgItem(hwnd, 30000);
My combobox resource is defined as 30000.
Anyways, when I try to compile this code I get this error:
`hwndCombo' cannot appear in a constant-expression
Thanks for any help given.
I have this 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;
Also, I have hwndCombo initialized right after I create my window. Don't worry, I know it is initialized before WM_COMMAND runs:
wndCombo = GetDlgItem(hwnd, 30000);
My combobox resource is defined as 30000.
Anyways, when I try to compile this code I get this error:
`hwndCombo' cannot appear in a constant-expression
Thanks for any help given.