Basic GUI question (trouble getting notifications from listboxes)
I create my child windows (listbox, buttons etc.) with:
Code:
switch(message) {
case WM_CREATE:
ListBox = CreateWindow();
break;
}
So how do I process their notifications? The examples I've seen do this:
Code:
case WM_COMMAND:
switch (LOWORD(wParam)) {
case SOME_REAL_LOUD_CONSTANT_DEFINED_IN_THE_RC_FILE:
switch (HIWORD(wParam)) {
// All the interesting stuff
}
break;
}
break;
But I don't have that constant defined in the rc file. I'm creating my windows with createwindow instead of using dialogs or something. So what do I need to do (differently)?