Those funny little thingys in the corner of the screen.

Started by
2 comments, last by MarkyD 22 years, 7 months ago
I''m asking for a lot over the last week, aren''t I? Anyway, don''t ask why, but how can you add an icon to the system tray in the corner of the Windows screen? I looked at the Microsoft''s programmers guide to Windows 95 help file, but that just gave me a whole load of dog turd. This isn''t that important to me at the moment, but it would be nice to know for the future. For that matter, I better know how to remove it, too. Thanks to anybody who posts any useful replies. ~ There''s no substitute for failure ~
Advertisement
Look up Shell_NotifyIcon().
WINSHELLAPI BOOL WINAPI Shell_NotifyIcon(    DWORD dwMessage,     PNOTIFYICONDATA pnid); 
Will do.

~ There''s no substitute for failure ~
Well, I tried that...

...and it failed. Kind of.

I can get the icon in the tray, and remove it, without any problems. However, for some reason, when my code finishes that whole procedure (I think they''re voids in C) it stops and I get an EAccessViolation error message. What''d I do wrong?

~ There''s no substitute for failure ~

This topic is closed to new replies.

Advertisement