Whenever I have an object on the window, for instance an EDIT, BUTTON, whatever, I try to use:
Code:
switch(msg){
case WM_KEYDOWN:
MessageBox(hwnd,"Hey sob","",0);
break;
}
It just doesn't seem to work. Anyone know why? I suppose it's because the focus is not onto the main window, rather to the EDIT OR WHATEVER.