MattG
asked on
Dialog applications and a tricky situation
This i know is gonna be simple but it is foxing me.
I have a dialog based application. On the main form it minimizes and maximises correctly, if i open a pop-up dialog from the main dialog then minimize the pop-up box it minimizes to the corner of the desktop not the taskbar, leaving the parent window showing (disabled) on the desktop.
I have tried <popupdialog>->SetParent(t his) before calling DoModal but this creates an exception. Has anybody any ideas what i am doing wrong.
Thanks
Matt
I have a dialog based application. On the main form it minimizes and maximises correctly, if i open a pop-up dialog from the main dialog then minimize the pop-up box it minimizes to the corner of the desktop not the taskbar, leaving the parent window showing (disabled) on the desktop.
I have tried <popupdialog>->SetParent(t
Thanks
Matt
by the way why dont you remove the minimize button from the modal dialog ?
ASKER
Thanks for your responces guys. I worked it out. You have to set the property 'application window' of the dialog to true, and use SW_HIDE adn SW_RESTORE to hide the parent window(s).
Thanks
Matt
Thanks
Matt
This question didn't show any activity for more than 21 days. I will ask Community Support to close it unless you finalize it yourself within 7 days.
You can always request to keep this question open. But remember, experts can only help if you provide feedback to their comments.
Unless there is objection or further activity, I will suggest to
"refund the points and PAQ at zero points"
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
========
Werner
You can always request to keep this question open. But remember, experts can only help if you provide feedback to their comments.
Unless there is objection or further activity, I will suggest to
"refund the points and PAQ at zero points"
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
========
Werner
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to create a non-modal dialog. See this for an example of how to do it:
http://www.codeguru.com/dialog/dialogMcManus.shtml