|
From: Elias P. <eli...@ao...> - 2001-04-07 11:57:59
|
> > >
> hChildPB=CreateWindow("LISTBOX","",WS_CHILD | WS_CLIPSIBLINGS |
LBS_NOTIFY
> | WS_VSCROLL, 10,40,148,180,hwnd,NULL,g_hInst,0);
>
> above is how I create it.
>
>
> case WM_COMMAND:
> switch( wParam )
Well, this is the problem. According to the Win32 API docs, the
WM_COMMAND has the following parameters:
wNotifyCode = HIWORD(wParam); // notification code
wID = LOWORD(wParam); // control identifier
hwndCtl = (HWND) lParam; // handle of control
Just replace wParam by HIWORD(wParam) and everything should work.
> {
> case LBN_SELCHANGE:
> MessageBox(hwnd,"it worked","I wish :(",MB_OK);
> break;
>
> then rest of my WM_COMMAND case which all works.
>
> but the messagebox is never displayed.
Elias Pschernig
|