您的位置:首页 > 产品设计 > UI/UE

The difference between "ModifyMenu" & "EnableMenuItem"

2013-04-11 09:29 525 查看
At first,I have to confess that I made a misunderstanding on the "EnableMenuItem",this function is to enable the "Menu Item" while I assume it also can enable the "Menu"(Please notice that what is "Menu Item" and "Menu"). Actually there is another function
which is used to enable "Menu"--"ModifyMenu". The fixed-mindset is horrible.

Attaching the using for these functions.

1) EnableMenuItem(GetMenu(),1, MF_BYPOSITION | MF_DISABLED | MF_GRAYED );

2) ModifyMenu(GetMenu(), 2, MF_BYPOSITION | MF_GRAYED ,0,"&Add ");

3) InsertMenu

4) RemoveMenu
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: