I've got another problem... I have setup my window with an empty child window by doing this:
Code:
HWND hchild = CreateWindow( "STATIC", "", WS_CHILD | WS_MAXIMIZE | WS_VISIBLE, 0, 0, 0, 0, hParent, (HMENU)ID_CHILD, GetInstance(), NULL );
This works all find and dandy, but I also have buttons in this child window. When the button is pressed, I suspect that the message is sent to the empty child window... but I don't have a window procedure to process the message. Is there some way that I redirect the button's message to another window when I declare the button like this?:
Code:
CreateWindow( WC_BUTTON, "A Button", WS_VISIBLE | WS_CHILD | WS_TABSTOP, 0, 0, 90, 20, hchild, (HMENU)ID_BUTTON, GetInstance(), NULL );
Thanks.