From 8b8abd7da92e66e248c840b5c33f075827534cec Mon Sep 17 00:00:00 2001 From: Kaehvaman Date: Fri, 1 Nov 2024 20:26:05 +0400 Subject: [PATCH] minor fixes --- lab18/lab18/lab18.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lab18/lab18/lab18.cpp b/lab18/lab18/lab18.cpp index 0e7a3d2..48db58e 100644 --- a/lab18/lab18/lab18.cpp +++ b/lab18/lab18/lab18.cpp @@ -98,7 +98,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { hInst = hInstance; // Сохранить маркер экземпляра в глобальной переменной - HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + HWND hWnd = CreateWindowExW(WS_EX_COMPOSITED, szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); if (!hWnd) @@ -330,10 +330,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) drawRecursiveTriangle(hdc, 300, 300, 100, trmode); drawRecursiveHourglass(hdc, 700, 300, 100, hgmode); - //drawRecursiveRomb(hdc, 1100, 300, 100, rbmode); + drawRecursiveRomb(hdc, 300, 700, 100, rbmode); drawRecursiveStar(hdc, 1100, 300, 100, rbmode); - drawRecursiveCircle(hdc, 500, 500, 200, 5); + drawRecursiveCircle(hdc, 1300, 700, 200, 5); circlecount = 0; EndPaint(hWnd, &ps);