Results 1 to 5 of 5

Thread: PLEASE HELP!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31

    Exclamation

    Hey everyone,

    My application resides in the system tray and displays a popupmenu when you right-click on it. I've noticed for all the rest of the programs I have running down there, if I right-click for their menus and then click outside the menu it dissapears. My apps menu won't go away! You have to choose something before it will. Odd, any ideas how I might put a stop to this?

    Thanks!

  2. #2
    Lively Member dlm's Avatar
    Join Date
    Oct 2000
    Location
    Geraardsbergen(Belgium)
    Posts
    91
    Hi,


    Have you tried to put a DoEvents in your code?
    If you can solve the problem, why worrying about it…
    If you can’t solve the problem, worrying won’t help…

    De la Motte Günther

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31
    No I haven't... Where abouts would I put it?

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31
    "Added the Win32 API call SetForegroundWindow before showing the SysTray menu - this ensures that the menu dismisses when the user clicks off the menu onto (for example) the desktop, whereas before it used to stick."

    I found this info on some DLL file for the system tray...

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31

    Talking

    I got it! Calling "SetForegroundWindow Me.hWnd" right before "PopupMenu mnuWhatever" fixes this problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width