MFC Dialog Application: From Parent Dialog, launched the Child Dialog. In the child dialog property "Minimize" button is checked. If click the "Minimize" button the child dialog minimize to the left corner of the screen instead of "Task Bar" how to solve this???
+1
A:
If I remember correctly, the "child" dialog has to be a top-level dialog if you want it to have a presence on the taskbar.
In other words, when creating your child dialog set the parent to NULL or to GetDesktopWindow(). I guess it depends on how your child dialog is being created, though.
It would help if you included the code you're using to create the child dialog.
Karim
2009-09-10 17:05:58
A:
I think a window must have an extended style containing WS_EX_APPWINDOW
(in addition to being a top-level window)
Alan
2009-09-10 21:18:22
Thanks.It worksModifyStyleEx(0, WS_EX_APPWINDOW);put the above function in the OnInitDialog() of Child Dialog.
2009-09-14 05:47:28
If it fixes your issue, you may want to vote me up and accept the answer! ;)
Alan
2009-09-14 08:34:47