just as title.
thanx.
Printable View
just as title.
thanx.
Try this:
CWnd *pWnd = GetDlgItem( IDC_MYBUTTON );
pWnd->ShowWindow( SW_HIDE );
Let me know if this help u
Regards,
Ovidiu
CButton is derived from CWnd... so use CWnd::ShowWindow() with SW_HIDE as the parameter to hide the window (button) and SW_SHOW to show the window.
You can create a member variable for your button with ClassWizard of type CButton and use the dot operator to call the ShowWindow() function.
Rail
------------
Recording Engineer/Software Developer
Rail Jon Rogut Software
http://home.earthlink.net/~railro/
[email protected]