ContextMenu for ToolBar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MuZZy

    #1

    ContextMenu for ToolBar

    Hi,

    The problem i have is to show a ContextMenu on a toolbar depending on
    which ToolBarButton is currently under cursor. Is there any way to find
    out which ToolBarButton mouse is pointing? ToolBar.GetChil dAtPos()
    doesn't work as ToolBarButton is not a child control fo a toolbar...

    I am implementing a sort of Windows Task Bar for my MDI application, and
    when you right click on a button representing your form you get some
    menu items according to your form windowstate - Maximize, Minimize,
    Restore... Each toolbar button is somehow linked to a MDI child form so
    if i know on what button ContextMenu popped-up, i will know what is the
    respective form and its state and what menu items to show.

    Any ideas?

    Thnak you,
    MuZZy
  • Jeffrey Tan[MSFT]

    #2
    RE: ContextMenu for ToolBar

    Hi MuZZy,

    "Herfried K. Wagner [MVP]" has provided an informative reply to you in
    microsoft.publi c.dotnet.framew ork.windowsform s.controls newsgroup. Please
    follow up there. I will monitor with you.

    Thanks

    Best regards,
    Jeffrey Tan
    Microsoft Online Partner Support
    Get Secure! - www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    Comment

    Working...