RECT rect;
HWND hwnd = GetDesktopWindow();
LockWindowUpdate(hwnd);
HDC hdc = GetDC(hwnd);
HBRUSH hbrush = CreateSolidBrush(RGB(255,0,0));
GetWindowRect(hwnd, &rect);
FillRect(hdc, &rect, hbrush);
这是我之前的尝试,什么也没做。为了清楚起见,我正在尝试将整个屏幕着色为纯色。