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
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
相关文章推荐
- test the difference between "DEFAULT NULL" and "DEFAULT 0"
- What is the difference between angle bracket < > and double quotes " " while including header files
- The difference between "malloc" and "new"
- [Ubuntu] Modify the "Main Menu" item panel in Ubuntu
- "Go to the Main Table Form" differences between Axapta 2.x and Dynamics AX 4
- The difference between 'typedef' and '#define'
- The fundamental differences between "GET" and "POST"
- What are the differences between shell , console & terminal?
- difference between "<" and "<<"
- the difference between "./" and "sh"
- The difference between Union & Union All in SQL Server/pOSTGRESQL
- Difference between "/0" and '/0' and '0' and 0
- The difference between d8&d9's constants def in asm shaders
- The differences of Circuit Maintenance Messages between BICC &amp; ISUP
- Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AI"
- Difference between menu item types; Display, Output and Action in Dynamics Ax
- CareerCup What is the difference between a computers heap and it's stack?
- SharePoint : The difference and relation between SPListItem.Update and SPListItem.SystemUpdate Methods 【转载】
- What's the difference between "forever" and "for good"?
- Oracle-The Main Difference Between DELETE & TRUNCATE