Fixed initial uiWindow child size. Tabs work fine anyway!

This commit is contained in:
Pietro Gagliardi 2015-04-29 02:31:24 -04:00
parent 9a7ddf0e38
commit b2d739a636
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ static void windowShow(uiControl *c)
return; return;
} }
w->shownOnce = TRUE; w->shownOnce = TRUE;
// make sure the bin is the correct size
SendMessage(w->hwnd, msgUpdateChild, 0, 0);
ShowWindow(w->hwnd, nCmdShow); ShowWindow(w->hwnd, nCmdShow);
if (UpdateWindow(w->hwnd) == 0) if (UpdateWindow(w->hwnd) == 0)
logLastError("error calling UpdateWindow() after showing uiWindow for the first time in windowShow()"); logLastError("error calling UpdateWindow() after showing uiWindow for the first time in windowShow()");