简体   繁体   English

如何在Visual Studio 2013中更改我的C ++应用程序的名称(该名称显示在窗口顶部)?

[英]How can I change the name of my C++ application in Visual Studio 2013 (The name that appears at the top of the window)?

I have tried changing the name of the active project, the solution, and the root directory of the project, but none of these affect the name that appears on the application window when I launch it. 我尝试过更改活动项目的名称,解决方案和项目的根目录,但是这些都不影响启动时出现在应用程序窗口中的名称。 I have looked through the solution and project properties and haven't found a field that I can change. 我已经查看了解决方案和项目属性,但没有找到可以更改的字段。

I have found answers to this question that apply to VS 2010 and 2008 but they do not apply to 2013. 我已经找到了适用于VS 2010和2008的此问题的答案,但不适用于2013。

EDIT: I am referring to the GUI window created by the application with DirectX. 编辑:我指的是使用DirectX的应用程序创建的GUI窗口。

If you're coding with the DirectX API, the title of the window should be passed to CreateWindowEx . 如果您使用DirectX API进行编码,则窗口的标题应传递给CreateWindowEx

       CreateWindowEx(NULL,
                      name_of_win_class,    
                      title_goes_here,  
                      window_style,   
                      x_pos,   
                      win_wid,    
                      win_hei,    
                      parent_win,   
                      menus,    
                      app_handle,    
                      mul_wins);    

I figured it out. 我想到了。 The name was being read in from a .rc file! 正在从.rc文件中读取名称!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在Visual Studio 2013中创建C ++控制台应用程序 - Can't create C++ console application in Visual Studio 2013 如何在 Visual Studio 2013 中更改 C++ 标准 - How to change c++ standard in Visual Studio 2013 如何为visual studio 2010 c ++应用程序创建自动更新程序? - How can I make an automatic updater for my visual studio 2010 c++ application? 创建新项目时,如何更改Visual Studio 2013(C ++)中的默认#include? - How to change default #includes in Visual Studio 2013(C++) when I create a new project? 我如何在 C++ 中更改堆栈的顶部? - How i can change the top of my stack in C++? 如何使我的Visual c ++ 2013应用程序不需要下载可再发行组件包? - How do I make my visual c++ 2013 application not need redistributable package downloaded? 为什么我的Win32(c ++,visual studio 2013)窗口没有显示? - Why isn't my Win32(c++, visual studio 2013) Window showing up? 我可以动态更改在Visual Studio中使用C ++创建的对话框窗口的字体大小吗? - Can I dynamically change the font size of a dialog window created with C++ in Visual Studio? Visual Studio 2019 C++ 桌面应用程序; 如何制作一个孩子 window? - Visual Studio 2019 C++ Desktop application; How do I make a child window? 如何为MinGW for C ++实现与Visual Studio相同的名称处理? - How to achieve same name mangling as of visual studio for MinGW for C++?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM