为什么我的设置窗口会报错

-1

HWND hwnd = initgraph(GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));

SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) - WS_BORDER);

SetWindowPos(hwnd, HWND_TOPMOST, 500, 150, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));

LONG WindowLong = GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED;

SetWindowLong(hwnd, GWL_EXSTYLE, WindowLong);

SetLayeredWindowAttributes(hwnd, RGB(0, 0, 0),0,LWA_COLORKEY);

ava
🍂🍂

2020-4-25

写清楚你的问题,否则谁也帮不了你。 -  慢羊羊  2020-4-25
技术讨论社区