Thread: Problems with icon... PLEASE HELP!

  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,793
    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, 04:06 PM
  2. Custom Icon for DLL
    By Delf in forum Windows Programming
    Replies: 5
    Last Post: 06-10-2005, 08: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