文件名称:ConfirmMenuPlace
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:37.29kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
代码简介或代码解析:
要根据命令标志确定菜单项的位置,只要根据命令标志在逐层菜单中寻找相应的菜单项,并确定其位置即可,一旦得到位置我们就可以在该位置添加菜单项的实例。
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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ConfirmMenuPlace
ConfirmMenuPlace/ConfirmMenuPlace.clw
ConfirmMenuPlace/ReadMe.txt
ConfirmMenuPlace/ConfirmMenuPlace.h
ConfirmMenuPlace/ConfirmMenuPlace.cpp
ConfirmMenuPlace/StdAfx.h
ConfirmMenuPlace/StdAfx.cpp
ConfirmMenuPlace/ConfirmMenuPlaceDoc.h
ConfirmMenuPlace/ConfirmMenuPlaceDoc.cpp
ConfirmMenuPlace/ConfirmMenuPlaceView.h
ConfirmMenuPlace/ConfirmMenuPlaceView.cpp
ConfirmMenuPlace/ConfirmMenuPlace.dsp
ConfirmMenuPlace/ConfirmMenuPlace.ncb
ConfirmMenuPlace/ConfirmMenuPlace.rc
ConfirmMenuPlace/ConfirmMenuPlace.plg
ConfirmMenuPlace/ConfirmMenuPlace.dsw
ConfirmMenuPlace/MainFrm.h
ConfirmMenuPlace/res
ConfirmMenuPlace/res/ConfirmMenuPlace.rc2
ConfirmMenuPlace/res/ConfirmMenuPlaceDoc.ico
ConfirmMenuPlace/res/ConfirmMenuPlace.ico
ConfirmMenuPlace/res/Toolbar.bmp
ConfirmMenuPlace/MainFrm.cpp
ConfirmMenuPlace/说明.txt
ConfirmMenuPlace/Resource.h
ConfirmMenuPlace/ConfirmMenuPlace.aps
ConfirmMenuPlace/ConfirmMenuPlace.opt
www.dssz.com.txt
ConfirmMenuPlace/ConfirmMenuPlace.clw
ConfirmMenuPlace/ReadMe.txt
ConfirmMenuPlace/ConfirmMenuPlace.h
ConfirmMenuPlace/ConfirmMenuPlace.cpp
ConfirmMenuPlace/StdAfx.h
ConfirmMenuPlace/StdAfx.cpp
ConfirmMenuPlace/ConfirmMenuPlaceDoc.h
ConfirmMenuPlace/ConfirmMenuPlaceDoc.cpp
ConfirmMenuPlace/ConfirmMenuPlaceView.h
ConfirmMenuPlace/ConfirmMenuPlaceView.cpp
ConfirmMenuPlace/ConfirmMenuPlace.dsp
ConfirmMenuPlace/ConfirmMenuPlace.ncb
ConfirmMenuPlace/ConfirmMenuPlace.rc
ConfirmMenuPlace/ConfirmMenuPlace.plg
ConfirmMenuPlace/ConfirmMenuPlace.dsw
ConfirmMenuPlace/MainFrm.h
ConfirmMenuPlace/res
ConfirmMenuPlace/res/ConfirmMenuPlace.rc2
ConfirmMenuPlace/res/ConfirmMenuPlaceDoc.ico
ConfirmMenuPlace/res/ConfirmMenuPlace.ico
ConfirmMenuPlace/res/Toolbar.bmp
ConfirmMenuPlace/MainFrm.cpp
ConfirmMenuPlace/说明.txt
ConfirmMenuPlace/Resource.h
ConfirmMenuPlace/ConfirmMenuPlace.aps
ConfirmMenuPlace/ConfirmMenuPlace.opt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.