Created
October 29, 2016 09:08
-
-
Save Soulstorm50/1c3aa07ddef43d55ecb0c9f6be5f7ee3 to your computer and use it in GitHub Desktop.
ChangeWindowTitle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int nCmdShow){ | |
TCHAR szWindowClass[] = TEXT("CalcFrame"); | |
TCHAR szWindowTitle[] = TEXT("Калькулятор"); | |
TCHAR szTextToSet[] = TEXT("My new title"); | |
HWND handler = FindWindow(szWindowClass, szWindowTitle); | |
if (handler) | |
SetWindowText(handler, szTextToSet); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment