文件名称:ConfirmMenuPlace
- 所属分类:
- 菜单
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 37kb
- 下载次数:
- 0次
- 提 供 者:
- st***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
代码简介或代码解析:
要根据命令标志确定菜单项的位置,只要根据命令标志在逐层菜单中寻找相应的菜单项,并确定其位置即可,一旦得到位置我们就可以在该位置添加菜单项的实例。
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
要根据命令标志确定菜单项的位置,只要根据命令标志在逐层菜单中寻找相应的菜单项,并确定其位置即可,一旦得到位置我们就可以在该位置添加菜单项的实例。
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
相关搜索: InsertMenu
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ConfirmMenuPlace
................\ConfirmMenuPlace.aps
................\ConfirmMenuPlace.clw
................\ConfirmMenuPlace.cpp
................\ConfirmMenuPlace.dsp
................\ConfirmMenuPlace.dsw
................\ConfirmMenuPlace.h
................\ConfirmMenuPlace.ncb
................\ConfirmMenuPlace.opt
................\ConfirmMenuPlace.plg
................\ConfirmMenuPlace.rc
................\ConfirmMenuPlaceDoc.cpp
................\ConfirmMenuPlaceDoc.h
................\ConfirmMenuPlaceView.cpp
................\ConfirmMenuPlaceView.h
................\MainFrm.cpp
................\MainFrm.h
................\ReadMe.txt
................\res
................\...\ConfirmMenuPlace.rc2
................\Resource.h
................\StdAfx.cpp
................\StdAfx.h
................\说明.txt
................\ConfirmMenuPlace.aps
................\ConfirmMenuPlace.clw
................\ConfirmMenuPlace.cpp
................\ConfirmMenuPlace.dsp
................\ConfirmMenuPlace.dsw
................\ConfirmMenuPlace.h
................\ConfirmMenuPlace.ncb
................\ConfirmMenuPlace.opt
................\ConfirmMenuPlace.plg
................\ConfirmMenuPlace.rc
................\ConfirmMenuPlaceDoc.cpp
................\ConfirmMenuPlaceDoc.h
................\ConfirmMenuPlaceView.cpp
................\ConfirmMenuPlaceView.h
................\MainFrm.cpp
................\MainFrm.h
................\ReadMe.txt
................\res
................\...\ConfirmMenuPlace.rc2
................\Resource.h
................\StdAfx.cpp
................\StdAfx.h
................\说明.txt