Skip to content

Instantly share code, notes, and snippets.

@Soulstorm50
Created October 29, 2016 09:08
Show Gist options
  • Save Soulstorm50/1c3aa07ddef43d55ecb0c9f6be5f7ee3 to your computer and use it in GitHub Desktop.
Save Soulstorm50/1c3aa07ddef43d55ecb0c9f6be5f7ee3 to your computer and use it in GitHub Desktop.
ChangeWindowTitle
#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