hab folgendes Problem:
Will ein Fenster umbennen, das will aber nicht wirklich.
Code:
#include <Windows.h>
#include <iostream>
using namespace std;
int main()
{
char lol[] = "^^";
HWND hwnd;
hwnd=FindWindowA(NULL, "Dokument - WordPad"); // Fensterhandle anhand von Titel holen
SetWindowTextA(hwnd, lol); // Titelleiste ändern
return 0;
}
Toll Problem 30s später gelöst. Schleife hinzugefügt, da stimmte wohl das Timing nicht. Sorry das ich das nicht vor dem erstellen des Threads probiert hab.






