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

i developing a dialog based application in MFC,i got few doubts in my application so kindly help me to solve those

1) After running the app i want my dialog to be hidden and keep in taskbar.The dialog should be opened only after clicking from the taskbar.
2)Even after keeping my dialog in the taskbar ,i want that to be runned continously in hidden mode like Windows Taskmanager .


Kindly help me to solve the above two points,will be thankfull if this thing is solved
Posted

1 solution

1) After running the app i want my dialog to be hidden and keep in taskbar.The dialog should be opened only after clicking from the taskbar.

Ans: Call ShowWindow( SW_HIDE ) to hide your window, and it will not terminate your process.

creating system tray icon
http://codingmisadventures.wordpress.com/2009/02/20/creating-a-system-tray-icon-using-visual-c-and-win32/[^]

Application to run in minimized mode.
http://www.daniweb.com/software-development/cpp/threads/319152/creating-a-program-that-runs-as-a-system-tray-icon[^]
 
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