简体   繁体   中英

How can I minimize a child dialog to the task bar in an MFC application?

I open a child dialog from a parent dialog. Among the child dialog properties I enabled the "Minimize" property. But if click the "Minimize" button, then the child dialog minimizes to the left corner of the screen instead of the Windows task bar. How can I solve this?

您的子对话框必须具有包含WS_EX_APPWINDOW的扩展样式(除了是顶级窗口之外)。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM