aeea
March 7th, 2008, 03:31 AM
When running a console application... is there any func that allow when minimized the exe... it will minimize to System Tray instead of task bar.
|
Click to See Complete Forum and Search --> : Minimize console app to System Tray aeea March 7th, 2008, 03:31 AM When running a console application... is there any func that allow when minimized the exe... it will minimize to System Tray instead of task bar. Krishnaa March 7th, 2008, 05:49 AM You can use NotifyIcon class to show/hide icon in system tray, when minimizing to system tray you just have to hide the application window and show when system tray menu item is hit. http://www.ddj.com/windows/184416688 http://msdn2.microsoft.com/en-us/library/aa984250(VS.71).aspx http://www.codeproject.com/KB/cs/mintraybtn.aspx aeea March 7th, 2008, 09:57 PM You can use NotifyIcon class to show/hide icon in system tray, when minimizing to system tray you just have to hide the application window and show when system tray menu item is hit. http://www.ddj.com/windows/184416688 http://msdn2.microsoft.com/en-us/library/aa984250(VS.71).aspx http://www.codeproject.com/KB/cs/mintraybtn.aspx All those showing in windows application... but i'm doing in console application... please help!! Krishnaa March 10th, 2008, 07:55 AM The only difference in console and windows form is the window type, so I am assuming that your current and remaining problem is 'how to hide the console' while setting it to tray icon, correct ? You will have to go Win32 way here, using FindWindow (you know console caption) & ShowWindow API, you can use PInvoke to call Win32 API. lsy March 11th, 2008, 10:55 PM The only difference in console and windows form is the window type, so I am assuming that your current and remaining problem is 'how to hide the console' while setting it to tray icon, correct ? You will have to go Win32 way here, using FindWindow (you know console caption) & ShowWindow API, you can use PInvoke to call Win32 API. Can you provide some sample? codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |