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?
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]
RET
ENDF
that should work, thanks.