views:

237

answers:

2

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
A: 

I think a window must have an extended style containing WS_EX_APPWINDOW (in addition to being a top-level window)

Alan
Thanks.It worksModifyStyleEx(0, WS_EX_APPWINDOW);put the above function in the OnInitDialog() of Child Dialog.
If it fixes your issue, you may want to vote me up and accept the answer! ;)
Alan