Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

system tray win32

Name: Anonymous 2009-12-19 8:03

Ok you guys I'm a first time poster so be gentle (also I'm not sure how you react to people asking for help)  I'm trying to write a win32 application in C and I'm trying to get it the application to minimize to the system tray.

I looked up some on line tutorials and it seemed simple enough.  Simply add the icon to the system tray then hide the window, unfortunately when I hide the window the icon disappears too.  I'm finding it hard to isolate the issue with my code, has anyone here successfully made a system tray icon using the windows api?

Name: Anonymous 2009-12-19 13:59

I did this with Delphi a few days ago (calling the Windows C API directly, there was no pre-made component that I could see). It worked the first time with no problems. Also I did other "complicated" stuff which is usually a nightmare to do, had no problems at all (I had to debug one segmentation fault in a foreign DLL, took 5 minutes, but I could have just ignored it and hoped for the best since in Delphi that just raises an exception, even if said DLL was written in C and compiled with MSVC). The resulting executable was under 200K in size, has no additional dependencies, works in any Windows version from 95 to 7, and starts up instantly.

Maybe you're just doing things in a really shitty way with really shitty tools.

BTW Delphi was much, much better than .NET has ever managed to be. It's a bit sad but as usual with Microsoft the only thing they manage to do is crappy copies that completely miss the subtle but critical good points of the original. Guess money can't buy you talent after all (even if you buyout the critical people).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List