I am new to API programming and I created standard window: registered WNDCLASSEX and wrote procedure WindowProcedure for message processing, then created window (that is child to desktop) with hwnd handlename.
I added groupbox with group handlename as child window to hwnd and then added button with search handlename as child of group.
IN WindowProcedure I wrote processing for WM_COMMAND message but it does nothing when I click to search.
I tought of mistake in WindowProcedure code and then added one button that is directly child of hwnd and when I click to that button I get what I want (I mean part of code that is responsible for WM_COMMAND responds to clicking on this button).
I tried to add BS_NOTIFY style to search but it did not help? Can anyone give suggestion about this problem that is most probably caused by these child-nesting sequence hwnd->group->search
Note that groupboxes are normally (i.e. when used in dialogs) the siblings of the buttons, static controls, edit controls, etc. they contain, rather than the parent. Hence the dozy behaviour.
Tkank you very much for help. I solved problem but I still don't understand code at link posted by webJose but it doesn't matter now. I am sure that I will after some time.