diff --git a/src/win32_window.c b/src/win32_window.c index f45d63ce..4fd31ea4 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -396,7 +396,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, switch (uMsg) { - case WM_CREATE: + case WM_NCCREATE: { CREATESTRUCTW* cs = (CREATESTRUCTW*) lParam; SetWindowLongPtrW(hWnd, 0, (LONG_PTR) cs->lpCreateParams);