如何使用GetMenuItemInfo选择菜单分隔符? [英] How do i select the menu separator using GetMenuItemInfo ?

查看:93
本文介绍了如何使用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.


这篇关于如何使用GetMenuItemInfo选择菜单分隔符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆