From cef7c7af6130f2f649c7bda747dcc465140150d9 Mon Sep 17 00:00:00 2001 From: Louis Philippe Gagnon Date: Wed, 6 Dec 2000 03:21:57 +0000 Subject: [PATCH] Update internal controls on WM_WINDOWPOSCHANGED. --- controls/combo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/controls/combo.c b/controls/combo.c index d8ca4357d41..3d09d52cf56 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -1844,6 +1844,13 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message, } case WM_WINDOWPOSCHANGING: return COMBO_WindowPosChanging(hwnd, lphc, (LPWINDOWPOS)lParam); + case WM_WINDOWPOSCHANGED: + /* SetWindowPos can be called on a Combobox to resize its Listbox. + * In that case, the Combobox itself will not be resized, so we won't + * get a WM_SIZE. Since we still want to update the Listbox, we have to + * do it here. + */ + /* fall through */ case WM_SIZE: if( lphc->hWndLBox && !(lphc->wState & CBF_NORESIZE) ) COMBO_Size( lphc );