From ca2ad1122274605312932e22d0ccfd3d6d9c62d3 Mon Sep 17 00:00:00 2001 From: vosrhd9 <32963881+vos1488@users.noreply.github.com> Date: Fri, 10 Mar 2023 02:04:40 +0300 Subject: [PATCH] Delete main.cpp --- Overlay/main.cpp | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 Overlay/main.cpp diff --git a/Overlay/main.cpp b/Overlay/main.cpp deleted file mode 100644 index fc33645..0000000 --- a/Overlay/main.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#include -#include -#include -#pragma comment(lib, "dwmapi.lib") - -const MARGINS margins = { -1 ,-1, -1, -1 }; -const wchar_t g_szClassName[] = L"overlay"; - -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) -{ - WNDCLASSEX wc; - HWND hwnd; - MSG Msg; - - wc.cbSize = sizeof(WNDCLASSEX); - wc.style = CS_HREDRAW | CS_VREDRAW; - wc.lpfnWndProc = DefWindowProc; - wc.cbClsExtra = 0; - wc.cbWndExtra = 0; - wc.hInstance = hInstance; - wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); - wc.hCursor = LoadCursor(NULL, IDC_ARROW); - wc.hbrBackground = (HBRUSH)(RGB(0,0,0)); - wc.lpszMenuName = NULL; - wc.lpszClassName = g_szClassName; - wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); - - RegisterClassEx(&wc); - - hwnd = CreateWindowEx( - WS_EX_LAYERED | WS_EX_TRANSPARENT, - g_szClassName, - g_szClassName, - WS_POPUP | WS_VISIBLE, - 0, 0, 1920, 1080, - NULL, NULL, hInstance, NULL); - - SetLayeredWindowAttributes(hwnd, RGB(0,0,0), 255, LWA_ALPHA); - DwmExtendFrameIntoClientArea(hwnd, &margins); - - while (GetMessage(&Msg, NULL, 0, 0) > 0) - { - TranslateMessage(&Msg); - DispatchMessage(&Msg); - } - exit(0); - return Msg.wParam; -} \ No newline at end of file