Click here to Skip to main content
15,911,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone.there is a puzzle with me.in the main dialog there's a child dialog A,when i click a button,i want to popup the dialog A and show it on the taskbar.how to achieve it.
Posted
Comments
Richard MacCutchan 1-Jan-15 11:08am    
A child dialog does not show on the task bar. You could make it a stand alone dialog by setting the parent HWND to NULL. However, you need to understand that there may be unintended consequences of such actions.
koll Zhu 1-Jan-15 20:54pm    
I have found this function within some apps.at the beginning,i used two dialog,created..destroyed..;i think it may be a waste because there's a method called "modifystyle".is there any advise?thank u.
Richard MacCutchan 2-Jan-15 4:21am    
I am not sure what to suggest as it is not really clear what you are trying to achieve.
Sergey Alexandrovich Kryukov 1-Jan-15 15:55pm    
Why?
And I would say, a window with WS_CHILD cannot be a "dialog". In what sense do you think it is a dialog?
—SA
koll Zhu 1-Jan-15 20:47pm    
my app is based on MFC Muti-dialog,so i called all "dialog".

1 solution

MSDN:
After the window has been created, these styles cannot be modified
...So the only option is to make you window child of the desktop (set parent to none/null)...However such change can have unwanted effects, like wrong rendering (very common)...
Basically child window with no parent is forbidden so do not expect it behave well...
MSDN:
If you specify the WS_CHILD style in CreateWindowEx but do not specify a parent window, the system does not create the window.

You may destroy and re-create the window...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900