如何修改VC++中IDR-MENU运行后,窗体上的名字```
答案:2 悬赏:10
解决时间 2021-03-21 13:42
- 提问者网友:深爱及嗨
- 2021-03-21 00:33
如何修改VC++中IDR-MENU运行后,窗体上的名字```
最佳答案
- 二级知识专家网友:陪我到地狱流浪
- 2021-03-21 01:42
右键点那个菜单项,看能重命名吗。
全部回答
- 1楼网友:年轻没有失败
- 2021-03-21 02:01
lpszmenuname
pointer to a null-terminated character string that specifies the resource name of the class menu, as the name appears in the resource file. if you use an integer to identify the menu, use the makeintresource macro. if this member is null, windows belonging to this class have no default menu.
================
也就是说,你需要用makeintresource宏来转换idr_typer,而不是直接强制转换(lpstr)。
这样改:
makeintresource(idr_typer);
=========================
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯