diff --git a/DDrawCompat/Gdi/User32WndProcs.cpp b/DDrawCompat/Gdi/User32WndProcs.cpp index 8171965..28a712e 100644 --- a/DDrawCompat/Gdi/User32WndProcs.cpp +++ b/DDrawCompat/Gdi/User32WndProcs.cpp @@ -137,6 +137,16 @@ namespace { switch (msg) { + case WM_CREATE: + { + LRESULT result = origDefWindowProc(hwnd, msg, wParam, lParam); + if (-1 != result) + { + Gdi::WinProc::onCreateWindow(hwnd); + } + return result; + } + case WM_CTLCOLORSCROLLBAR: if (reinterpret_cast(lParam) == hwnd) {