博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
vc2008中使用CMFCMenuBar如何动态改变菜单文本
阅读量:4298 次
发布时间:2019-05-27

本文共 879 字,大约阅读时间需要 2 分钟。

可以尝试转换成CMenu指针。

CMFCMenuBar m_wndMenuBar;

CMenu *mainMenu = CMenu::FromHandle(m_wndMenuBar.GetDefaultMenu());

需要注意的是,您对mainMenu进行完您想要的操作后,需要调用m_wndMenuBar.CreateFromMenu(mainMenu->GetSafeHmenu, TRUE, TRUE);来将变化反映到m_wndMenuBar里面去。

 

此外,这些是第三方网站,对于CMFCMenuBar加载菜单的一些讨论,也许对您的问题有所帮助。

1. 

2. 

 

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

 

转载地址:http://xenws.baihongyu.com/

你可能感兴趣的文章
java等待-通知机制 synchronized和waity()的使用实践
查看>>
win10 Docke安装mysql8.0
查看>>
docker 启动已经停止的容器
查看>>
order by 排序原理及性能优化
查看>>
Lock重入锁
查看>>
docker安装 rabbitMq
查看>>
git 常用命令 入门
查看>>
linux安装docker
查看>>
关闭selinx nginx无法使用代理
查看>>
shell 脚本部署项目
查看>>
spring cloud zuul网关上传大文件
查看>>
springboot+mybatis日志显示SQL
查看>>
工作流中文乱码问题解决
查看>>
maven打包本地依赖包
查看>>
spring boot jpa 实现拦截器
查看>>
jenkins + maven+ gitlab 自动化部署
查看>>
Pull Request流程
查看>>
Lambda 表达式
查看>>
函数式数据处理(一)--流
查看>>
java 流使用
查看>>