Link to home
Start Free TrialLog in
Avatar of VEngineer
VEngineer

asked on

making a CWnd (or derived control) invisible


How can you make a CWnd control not visible, codewise?  I know you can set the option in the properties box when you right click, but is there a way to set it in the code so I can make it visible/invisible when necessary?
ASKER CERTIFIED SOLUTION
Avatar of thresher_shark
thresher_shark

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thresher_shark
thresher_shark

Also, if you want to show the window again, use the following:

ShowWindow (SW_SHOW);

If you look up ShowWindow in InfoViewer, you'll see that you can do all sorts of things with it, like minimizing the window, maximizing it, restoring etc.
Avatar of VEngineer

ASKER

Thanks for the help, as well as taking a brief moment to explain instead of just tossing code as the answer .. it works fine.
Glad I could help!