How do I add minimize option in the system menu of a CDialog application.
The application has a minimize box, a close box.
But in the system menu there is no "_ Minimize" option, how do I add this...
Printable View
How do I add minimize option in the system menu of a CDialog application.
The application has a minimize box, a close box.
But in the system menu there is no "_ Minimize" option, how do I add this...
Well
So have the gurus given up on this one or they dont like to ponder over this kinda puny questions...
So, you're saying that the dialog's "Property" setting has "Minimize box" checked, but when you right-click the app's title bar, the popup doesn't include "_Minimize" ?
In my experience, if the dialog's "Property" had "Minimize box" checked, then, by default, the command should visible in the popup.
thats exactly the problem.
If it matters, actually the minimize box was not present in the dialog box by default, i added it by doing
ModifyStyle(0, WS_MINIMIZEBOX );
yet...
do you have _minimize grayed? or not have it at all?
can you send your project? i will look into that.
Cheers
Yes, I think that matters. If you change the style after creation you will have to update the system menu yourself as well. I guess the system menu will be based on the initial properties of the dialog.Quote:
If it matters, actually the minimize box was not present in the dialog box by default, i added it by doing
ModifyStyle(0, WS_MINIMIZEBOX );
Use the GetSystemMenu function to add any item to your dialog's menu.
http://msdn.microsoft.com/library/en...systemmenu.asp
Alright I figured a solution.
Instead of doing a ModifyStyle, I added the minimize box option in the Dialog Properties, and voila it works.
Thanks all for help.
well duh! this is the first thing u should have done :-)
i thought that u did it and still didnt see the minimize!
nevermind as long as it working.
Cheers
Cool Scene :cool: ;), way to go pal......
Regards,
Ashwin