How would I go about minimizing or maximizing my dialog programatically?
Thanx
Printable View
How would I go about minimizing or maximizing my dialog programatically?
Thanx
ShowWindow(SW_MINIMIZE);
Best Regards
Agha Shujaa Khan
Thank you very much.
use this code:
CMydialog dlg;
dlg.ShowWindow(SW_MINIMIZE);
// to restore:
dlg.ShowWindow(SW_RESTORE);
HTH,
Jan
Please let me know if I helped...
Ok, I have another one for ya. I need to be able to programatically check if the window is already maximized, but I cannot find a property/method for it in MSDN. Help?
Perfect! Although now I need a property or function that will tell me if the dialog is currently maximized. I cant find one in MSDN. Ideas?
Look at :
IsIconic()
IsZoomed()
Thanks.