i have numerous controls on a groupbox with the intention to be able to hide all the controls by just hiding the groupbox. is there a style of some sort to get rid of the border surrounding the groupbox? or maybe there is a better way to hide numerous controls without having to hide each one individually?
Posted on 2004-06-02 18:07:32 by smurf
Maybe make them the children of a static, that way you have more control over the appearance and can just relay the messages to the windowproc or handle them in a subclass. For example you could just relay the WM_COMMAND :

invoke SetWindowLong,[hStatic],GWL_WNDPROC,offset RelayProc

RelayProc FRAME hwnd,uMsg,wParam,lParam

cmp D[uMsg],WM_COMMAND
jne >
invoke GetParent,[hwnd]
invoke PostMessage,eax,[uMsg],[wParam],[lParam]

invoke DefWindowProc,[hwnd],[uMsg],[wParam],[lParam]

Posted on 2004-06-02 20:17:53 by donkey
that should work, thanks.
Posted on 2004-06-02 21:11:55 by smurf