如何获取菜单项的位置 [英] How to get the Position of a menu item
本文介绍了如何获取菜单项的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取菜单项的位置。我有菜单项ID。使用API CMenu :: GetMenuItemID()
可以反过来。
<$是否有任何API c $ c> CMenu 获取菜单项位置?
提前谢谢。
Hi,
How can I get the Position of a menu item. I am having Menu Item ID. The reverse is possible using the API CMenu::GetMenuItemID()
.
Is there any API in CMenu
to get the menu item position?
Thanks in advance.
推荐答案
没有直接的方法。我猜你必须迭代菜单的项目来检索这样的信息。
There's no direct method for that. I guess you have to iterate on the menu's items to retrieve such a info.
这是一个例子,说明有人如何尝试解决它,如CPallini所述。请注意,我没有尝试过代码示例,也无法验证它。
从命令ID中查找menuitem [ ^ ]
Here is an example of how someone has tried to solve it, as noted by CPallini. Note that I have not tried the code sample nor can I verify it.
Finding a menuitem from command id[^]
继Signor Pallini的回答之后,您可以随时查看文档 [ ^ ]。
Further to Signor Pallini's answer you can always check the documentation[^].
这篇关于如何获取菜单项的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文