summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-09 18:10:27 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-09 18:10:27 +0100
commit4dd6fd051bd6eeb12ce0a9d007dcb4d59a69015b (patch)
treea7dbb411df5e7040befc3daa8f78c7505b236dc1 /plugingui
parent728abec962f993309acf3ebb1317b5f3773f18c7 (diff)
Do not use window size and position functions in native window constructor as this would lead to a self reference loop.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/nativewindow_win32.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc
index 873a334..b81d121 100644
--- a/plugingui/nativewindow_win32.cc
+++ b/plugingui/nativewindow_win32.cc
@@ -321,8 +321,8 @@ NativeWindowWin32::NativeWindowWin32(void* native_window, Window& window)
m_hwnd = CreateWindowEx(0/*ex_style*/, m_className,
"DGBasisWidget",
(native_window?WS_CHILD:WS_OVERLAPPEDWINDOW) | WS_VISIBLE,
- window.x(), window.y(),
- window.width(), window.height(),
+ 0, 0, //window.x(), window.y(),
+ 1, 1, //window.width(), window.height(),
parent_window, nullptr,
GetModuleHandle(nullptr), nullptr);