diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 1c6fff4a35..8f66f7877a 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -455,9 +455,18 @@ void wxChoice::MSWEndDeferWindowPos() void wxChoice::MSWUpdateDropDownHeight() { + int flags = wxSIZE_USE_EXISTING; + if ( wxApp::GetComCtl32Version() < 600 ) + { + // Make sure our DoMoveWindow() will get called to update the dropdown + // height, this happens automatically with comctl32.dll v6, but not + // with earlier versions. + flags |= wxSIZE_FORCE; + } + // be careful to not change the width here DoSetSize(wxDefaultCoord, wxDefaultCoord, wxDefaultCoord, GetSize().y, - wxSIZE_USE_EXISTING); + flags); } void wxChoice::DoMoveWindow(int x, int y, int width, int height)