How to Change Titles in the Taskbar With MFC
- 1). Right-click the "C" file that contains your program code. Select "Open With." If you have a third-party application you use to program your C applications, double-click it in the list of programs. Otherwise, you can use a Windows text editor, such as "Notepad." Double-click your desired program to open the code file.
- 2). Scroll down to the location of the file where you want to edit the window text. Most programmers place the window text in the "Windows_Load" function.
- 3). Type the following code in your file:
void CMainFrame::SetAppName(LPCTSTR Title) {
m_strTitle = "My Title";
}
Replace "My Title" with your own taskbar title. - 4). Click the "Save" button in your code editor. If you are using Notepad, click "File" and click "Save" to save your changes.