ContextMenu for ToolBar

M

MuZZy

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.GetChildAtPos()
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
 
J

Jeffrey Tan[MSFT]

Hi MuZZy,

"Herfried K. Wagner [MVP]" has provided an informative reply to you in
microsoft.public.dotnet.framework.windowsforms.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top