开发者

Extending ContextMenu

开发者 https://www.devze.com 2022-12-16 11:41 出处:网络
I would like to extend ContextMenu from System.Windows.Forms namespace to have some event indicating that the menu has been closed e.g. user has selected some item or just clicked somewhere and the sy

I would like to extend ContextMenu from System.Windows.Forms namespace to have some event indicating that the menu has been closed e.g. user has selected some item or just clicked somewhere and the system has closed the menu. I know ContextMenuStrip has such events but I don开发者_StackOverflow't want to use it.

I though ContextMenu have WndProc method like other controls which I would use to check for WM_MENUSELECT message but there isn't so what I should do to check system messages for my ContextMenu?


What's wrong with the events provided by the contextmenustrip itself?

0

精彩评论

暂无评论...
验证码 换一张
取 消