|
-
March 5th, 2010, 05:36 PM
#1
Tray Icon Woes
Ok, I have figured out most things I need to know about using tray icons except one thing. When someone double-clicks the icon, I want it so that it shows it in the case where the program is already iconized and also when the program isn't iconized but happens to be inactive (i.e. they open the program then switch to another window). In all other cases, I want it to iconize the program. Most tray apps I've used do this. I figured out 2 of the 3 cases, but I can't figure out how to distinguish when they click the tray icon if the program was previously active or not. The issue lies in the fact that just by clicking the tray icon, the program inactivates, so my click event can't really tell if it was "previously" active or already active before I clicked the icon. Any thoughts on how I can detect this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|