Strange 'minimize button' action.
-
When I click on minimize box, my CDialog derived window goes to taskbar but also ALL other thread-separated CDialog windows minimize?! How to fix it? Those thread-separated windows are modeless, created in InitInstance() of CWinThread derived class. Thanks for help:)
-
When I click on minimize box, my CDialog derived window goes to taskbar but also ALL other thread-separated CDialog windows minimize?! How to fix it? Those thread-separated windows are modeless, created in InitInstance() of CWinThread derived class. Thanks for help:)
By default, parent of dialog is set to
NULL
. Which makes application's main window as parent of dialog. Which is happening in your case. To avoid it, you can set desktop window as parent window of dialog you dont want to minimize with main dialog. But, in this case, this dialog will appear in taskbar,too.:)Prasad Notifier using ATL | Operator new[],delete[][^]
-
By default, parent of dialog is set to
NULL
. Which makes application's main window as parent of dialog. Which is happening in your case. To avoid it, you can set desktop window as parent window of dialog you dont want to minimize with main dialog. But, in this case, this dialog will appear in taskbar,too.:)Prasad Notifier using ATL | Operator new[],delete[][^]
Thanks, that explains a lot. So, creating dialogs with desktop as a parent window will make those windows full separated from the application's main window? I ask because now when I create dialogs with NULL parent window, I cannot move main application's window on the top of their 'children' by activating it. It is getting the focus, titlebar is changing to active and all controls work but the window is not placed on the top of other windows. Is it also this case or something else is going on? Thanks again:)
-
Thanks, that explains a lot. So, creating dialogs with desktop as a parent window will make those windows full separated from the application's main window? I ask because now when I create dialogs with NULL parent window, I cannot move main application's window on the top of their 'children' by activating it. It is getting the focus, titlebar is changing to active and all controls work but the window is not placed on the top of other windows. Is it also this case or something else is going on? Thanks again:)
PatrykDabrowski wrote:
Is it also this case
I dont think so.
Prasad Notifier using ATL | Operator new[],delete[][^]