Problems with icon... PLEASE HELP!

This is a discussion on Problems with icon... PLEASE HELP! within the Windows Programming forums, part of the Platform Specific Boards category; I am currently using "Shell_NotifyIcon" to place icons on the Status bar or w/e its called. The problem is it ...

  1. #1
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Question Problems with icon... PLEASE HELP!

    I am currently using "Shell_NotifyIcon" to place icons on the Status bar or w/e its called. The problem is it sends a message to my window every time ANY mouse function happened, even jsut the mouse moving within it's rectangle. How to I make it so it only happens on one action, such as WM_LBUTTONDOWN or something?

    All help appriciated! SPH

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    I'm guessing you mean the sytem tray??

    when you prepare your NOTIFYICONDATA structure, the one of the members (uCallbackMessage) is used to specify a specific identifier message that is sent to the creating window. So if you include that identifier in your switch statement, you can add anaother switch in that block and filter like so;

    Code:
    switch(LOWORD(lParam)){
    	  
    	  case WM_RBUTTONUP: 
    // Do whatever
    
    } break;

  3. #3
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Talking thanks

    Thanks a lot! Its works perfectly! You have really helped my project along!

    SPH

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Icon Help
    By The Brain in forum Windows Programming
    Replies: 11
    Last Post: 04-05-2009, 05:06 PM
  2. Custom Icon for DLL
    By Delf in forum Windows Programming
    Replies: 5
    Last Post: 06-10-2005, 09:36 AM
  3. Icon problem
    By mkyong in forum Windows Programming
    Replies: 0
    Last Post: 02-17-2003, 05:39 PM
  4. Icon? help!
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-16-2001, 06:21 PM
  5. icon in title bar?
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 12-12-2001, 06:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21