diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-08 20:53:34 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-08 20:53:34 -0400 |
| commit | fef91d9820b5df51f2ef7aff49043933f2e413b9 (patch) | |
| tree | 3498d4f54429a212176258d1a0a2e4861be867eb /new/window_windows.c | |
| parent | 87bb7328324a626d6278eaa204206311f717c7fb (diff) | |
"Fixed" initial Windows window shows for now (see previous commit). Not yet a clean fix; need to test some things on real Windows first.
Diffstat (limited to 'new/window_windows.c')
| -rw-r--r-- | new/window_windows.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/new/window_windows.c b/new/window_windows.c index 881173d..88e7aae 100644 --- a/new/window_windows.c +++ b/new/window_windows.c @@ -30,10 +30,12 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA return lResult; switch (uMsg) { case WM_WINDOWPOSCHANGED: - if (w->child == NULL) - break; if ((wp->flags & SWP_NOSIZE) != 0) break; + // fall through + case msgUpdateChild: + if (w->child == NULL) + break; if (GetClientRect(w->hwnd, &r) == 0) logLastError("error getting window client rect for resize in uiWindowWndProc()"); resize(w->child, w->hwnd, r); |
