Код: Выделить всё
atomic workerRef(nullptr);
BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam) {
if (FindWindowEx(hWnd, NULL, "SHELLDLL_DefView", NULL) == NULL) {
return TRUE;
}
HWND worker = FindWindowEx(NULL, hWnd, "WorkerW", NULL);
if (worker != NULL) {
workerRef = worker;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79763352/setting-a-window-as-wallpaper[/url]
Мобильная версия