471,306 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

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.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
Dec 25 '05 #1
1 1326
Hi MuZZy,

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

Dec 26 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by blabore | last post: by
4 posts views Thread by blabore | last post: by
11 posts views Thread by Graham Charles | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.