Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I would like to autohide my dialog application so that when the user clicks the cross button it goes to the taskbar.

Please help, how can I do this in MFC/C++
Gerard
Posted
Updated 9-Sep-10 22:55pm
v2
Comments
Dalek Dave 10-Sep-10 4:55am    
Minor Edit for Grammar.

A dialog will receive a WM_CLOSE message in this case,
so you could handle the event in your own manner... :)
 
Share this answer
 
I suppose you mean that your application should go to the system tray ? If yes, check this article[^]
 
Share this answer
 
C#
this.WindowState = FormWindowState.Minimized;


C++.Net
this->WindowState=FormWindowState::Minimized;		
 
Share this answer
 
Comments
CPallini 10-Sep-10 5:25am    
.NET has nothing to do with OP, I believe.

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