Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clicking on minimize box make app to run in system tray

Status
Not open for further replies.

kkiran

Programmer
Oct 28, 2003
1
US
hi
i want my application to be minimized to the systemtray when ever i click on Minimizebox on the mainframe of my SDI application. i have a code that will be place the icon in the tray but when minimizebox is clicked i don't want the icon in the taskbar i should directly move to the systemtray.
can any one help
 
I'm working on a systemtray icon also. I can point you to two places:

These guys use a wrapper program to simplify the icon

These guys also have a downloadable app

My suggestion would be to not call the draw function on the taskbar. Hopefully these apps will help you out. If you know of any better refrences post them here.

thekenguy
 
Here is quite a simple example of Putting an Icon in the system tray:


The only thing I found with the example was in Windows 2000 you really need to call SetForegroundWindow(hWnd) before the call to TrackPopupMenu(GetSubMenu(...), ...) otherwise the right click popup menu won't go away when you press ESC or click somewhere else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top