summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--new/newcontrol_windows.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/new/newcontrol_windows.c b/new/newcontrol_windows.c
index 0967114..375488b 100644
--- a/new/newcontrol_windows.c
+++ b/new/newcontrol_windows.c
@@ -95,6 +95,7 @@ uiControl *uiWindowsNewControl(uiWindowsNewControlParams *p)
p->lpClassName, p->lpWindowName,
p->dwStyle | WS_CHILD | WS_VISIBLE,
0, 0,
+ // use a nonzero initial size just in case some control breaks with a zero initial size
100, 100,
initialParent, NULL, p->hInstance, NULL);
if (s->hwnd == NULL)