#include <Windows.h>
#include <iostream>
int main()
{
while (true) {
if (GetAsyncKeyState('Z') & 0x8000) {
int screenWidth = GetSystemMetrics(SM_CXSCREEN);
int screenHeight = GetSystemMetrics(SM_CYSCREEN);
int centerX = screenWidth / 2;
int centerY = screenHeight / 2;
HWND zoomWindow = CreateWindowEx(
WS_EX_TOPMOST | WS_EX_LAYERED | WS_EX_TRANSPARENT | WS_EX_TOOLWINDOW,
L"STATIC", NULL, WS_POPUP | WS_VISIBLE,
centerX - 100, centerY - 100, 200, 200,
NULL, NULL, NULL, NULL);
SetLayeredWindowAttributes(zoomWindow, RGB(0, 0, 0), 128, LWA_ALPHA);
HDC hdc = GetDC(zoomWindow);
HBRUSH brush = CreateSolidBrush(RGB(255, 0, 0));
SelectObject(hdc, brush);
Ellipse(hdc, 0, 0, 200, 200);
ReleaseDC(zoomWindow, hdc);
DeleteObject(brush);
}
}
return 0;
}