Adding a tray icon for a console app?

  • Thread starter Thread starter melon
  • Start date Start date
M

melon

Hello,

I have written a console application, but now I would like to add a
notify icon in the system tray. What is the easiest way to do it? It
would be painful if I have to convert it to a Windows App.

Thanks.
 
melon,

The problem with the console app is that there is no pump for windows
messages. You could run a message pump in a separate thread, and then have
a NotifyIcon class instance that was created in that thread. It's not going
to be pretty, but I think it is possible.

Hope this helps.
 
Back
Top