如何在Visual Studio 2012中重命名.rc文件和主窗体? [英] How to rename a .rc file and main form both made in Visual Studio 2012?

查看:616
本文介绍了如何在Visual Studio 2012中重命名.rc文件和主窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自codeproject的人们。



我在一个最初用MFC / C ++制作的项目中做过一些修复;我想知道如何重命名.rc文件。我将在这张图片中更具体地解释:



[ ^ ]



DbcEditor.rc是我要重命名的对象,比如Editor.rc



更重要的是,另一个问题,一旦是程序正在运行和编译,主窗体有一个主标题,我怎么编辑它?我只想更改表单中的文本,而不是对象的名称本身,我将使用下面的图片更好地展示它:



http://i.stack.imgur.com/SNQAW.png [ ^ ]



当前主表是我想改变的文字。



所有信息都将被接受,感谢您的阅读。



问候。

解决方案

重命名只需右键单击visual studio项目资源管理器中的rc文件,然后选择重命名



对话框标题重命名是比较棘手的......它要么在rc文件本身中静态定义(使用VS资源视图来检查它),要么由代码设置,可能在 OnInitDialog

Hello people from codeproject.

I have been doing some fixes in a project that was originally made in MFC/C++ ; I want to know how to rename the .rc file. I will explain more specifically in this picture:

[^]

DbcEditor.rc is the object that I want to rename, something like Editor.rc

And more important, The other question, once the program is running and compiled, the main form has a main title, How could I edit it? I just want to change the text in the form, not the name itself for the object, I will expalin it better with the following picture:

http://i.stack.imgur.com/SNQAW.png[^]

"THE CURRENT MAIN FORM" is the text that I wan to get changed.

All the information will be accepted, thanks for reading.

Regards.

解决方案

the rename is simply right click on the rc file in the visual studio project explorer, and choose rename

the dialog caption rename is trickier ... it's either statically defined in the rc file itself (use the VS resource view to examine it) or it's set by code, probably in OnInitDialog


这篇关于如何在Visual Studio 2012中重命名.rc文件和主窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆