From e1c554bd40d80b0e8626b8f900c1f69a1faec6e0 Mon Sep 17 00:00:00 2001 From: "andre@woesten.com" Date: Wed, 5 Nov 2008 23:12:16 +0000 Subject: [PATCH] BUGFIX: Fixed Window Centering for new TopLevelWindows --- src/win32cpp/TopLevelWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32cpp/TopLevelWindow.cpp b/src/win32cpp/TopLevelWindow.cpp index 809a66414..0b435ad08 100644 --- a/src/win32cpp/TopLevelWindow.cpp +++ b/src/win32cpp/TopLevelWindow.cpp @@ -119,8 +119,8 @@ HWND TopLevelWindow::Create(Window* parent) style, // Style CW_USEDEFAULT, // X CW_USEDEFAULT, // Y - 240, // Width - 120, // Height + (this->minSize.width) ? this->minSize.width : 240, // Width + (this->minSize.height) ? this->minSize.height: 120, // Height parentHWND, // Parent NULL, // Menu hInstance, // Instance