Click here to Skip to main content
15,936,349 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++
Updated 9-Sep-10 22:55pm
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
this.WindowState = FormWindowState.Minimized;

Share this answer
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