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?
Actually it's not that I don't like the thread, it's just that a) I don't have anything of real value to add, and I want to be discreet or b) bumping it might make more important/interesting threads less visible.
>>11 >>12
oh fair enough you elitist text board frequenters. Although I managed to find a solution. The trick is if you're going to try and catch the close window message, make sure you don't accidentally call the default windows procedure. Simple as that. (can't believe it tripped me up for so long)
>>14
Speaking of sage, you solved your problem, so you really should use sage because there is no point in bumping the thread now that your question is answered.
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.