Location:
Search - InsertMenu
Search list
Description: VC++环境下菜单和工具栏的动态修改技术-界面类编程-VC利用Cmenu类的AppendMenu和Cmenu类的InsertMenu按
需在菜单上插入新的菜单项
-VC environment menu and toolbar technology changes the dynamic - programming interface Class-VC Cmenu use category AppendMenu and Cmenu category InsertMenu demand in the menu to insert a new menu Xiang
Platform: |
Size: 5258 |
Author: sun |
Hits:
Description: 代码简介或代码解析:
要根据命令标志确定菜单项的位置,只要根据命令标志在逐层菜单中寻找相应的菜单项,并确定其位置即可,一旦得到位置我们就可以在该位置添加菜单项的实例。
1 在resouce.h中定义一个新的ID表示要添加的菜单
2 在CMainFram类添加函数bool CMainFram::FindMenuPos(...) ,此函数将根据命令标志确定菜单项的位置
3 在CMainFram类添加函数void CMainFram::InsertMenu(...),此函数将在确定位置添加菜单项
4 在恰当位置如CMainFram::OnActivate(...)中调用以上2个函数
-code or code analysis : under orders to identify menu item signs of the location Under the order as long as the hallmark layer menu for the corresponding menu item, and its location can be determined, Once we can position in the position to add menu items example. Resouce.h a definition in a new ID said adding the menu in two categories CMainFram Add function bool CMainFram : : (...) FindMenuPos. This function will sign an order to determine the location of menu items in three categories CMainFram add function void CM ainFram : : InsertMenu (...), This function will be added in determining the location of four menu items such as the proper location CMainFram : : Calling OnActivate (...) above two functions
Platform: |
Size: 38180 |
Author: stone |
Hits:
Description: 一个IE浏览器的插件的源代码-a browser plug-in source code
Platform: |
Size: 25600 |
Author: 阿牛 |
Hits:
Description: VC++环境下菜单和工具栏的动态修改技术-界面类编程-VC利用Cmenu类的AppendMenu和Cmenu类的InsertMenu按
需在菜单上插入新的菜单项
-VC environment menu and toolbar technology changes the dynamic- programming interface Class-VC Cmenu use category AppendMenu and Cmenu category InsertMenu demand in the menu to insert a new menu Xiang
Platform: |
Size: 5120 |
Author: sun |
Hits:
Description: 代码简介或代码解析:
要根据命令标志确定菜单项的位置,只要根据命令标志在逐层菜单中寻找相应的菜单项,并确定其位置即可,一旦得到位置我们就可以在该位置添加菜单项的实例。
1 在resouce.h中定义一个新的ID表示要添加的菜单
2 在CMainFram类添加函数bool CMainFram::FindMenuPos(...) ,此函数将根据命令标志确定菜单项的位置
3 在CMainFram类添加函数void CMainFram::InsertMenu(...),此函数将在确定位置添加菜单项
4 在恰当位置如CMainFram::OnActivate(...)中调用以上2个函数
-code or code analysis : under orders to identify menu item signs of the location Under the order as long as the hallmark layer menu for the corresponding menu item, and its location can be determined, Once we can position in the position to add menu items example. Resouce.h a definition in a new ID said adding the menu in two categories CMainFram Add function bool CMainFram : : (...) FindMenuPos. This function will sign an order to determine the location of menu items in three categories CMainFram add function void CM ainFram : : InsertMenu (...), This function will be added in determining the location of four menu items such as the proper location CMainFram : : Calling OnActivate (...) above two functions
Platform: |
Size: 37888 |
Author: stone |
Hits: