如何使用GetMenuItemInfo选择菜单分隔符?

如何使用GetMenuItemInfo选择菜单分隔符?

问题描述:

我在两个菜单项之间绘制了分隔符.我想在将鼠标移到menu_separator上时执行一些操作.我用谷歌搜索,发现它可以使用GetMenuItemInfo函数.但是我不知道该怎么做?

I have drawn separator between two menu items. I want to perform some action while scrolling mouse over menu_separator. I have googled and found that its possible using GetMenuItemInfo function. But i dont know how to do this?

我不确定您是否可以实际选择它,因为就应用程序而言,分隔符没有任何作用.它们仅是显示给用户的中断的视觉指示.如果知道分隔符的位置,则可以使用该位置值调用GetMenuItemInfo()并查看返回的信息.
I''m not sure that you can actually select it since separators serve no purpose as far as the application is concerned. They are merely visual indications of breaks shown to the user. If you know the position of a separator you can call GetMenuItemInfo() with that position value and see what information is returned.