Results 1 to 4 of 4

Thread: A weird problem with popup menus [RESOLVED]

  1. #1

    Thread Starter
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    A weird problem with popup menus [RESOLVED]

    I have an app that popup up a menu when you right click it's icon in the system tray. It seems that now, it doesn't close the menu if I click somewhere else. I am forced to click an item in the menu in order to close it... Has anything similar happened to anyone else..???
    Last edited by baja_yu; Aug 5th, 2004 at 06:18 AM.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. Private Declare Function SetForegroundWindow Lib "user32" Alias "SetForegroundWindow" (ByVal hwnd As Long) As Long

    Call SetForegroundWindow before calling PopupMenu.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    That worked! Thanks

  4. #4
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    256

    Re: A weird problem with popup menus [RESOLVED]

    Hi.. can u please tell me ...how to call the Setforeground and from Where..
    and what is the right syntax to call it..

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