From 50c8b82054d96a9cc846d09ed98eecad07907be0 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 31 Oct 2006 16:35:57 +0000 Subject: [PATCH] Invalidate cache because best size was calculated earlier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/radiobox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index c8f410dc26..af016c9a15 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -206,6 +206,10 @@ bool wxRadioBox::Create(wxWindow *parent, SetWindowPos(GetHwnd(), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE); #endif + // Have to invalidate the best size as it may have been calculated + // before the number of buttons was known + InvalidateBestSize(); + SetMajorDim(majorDim == 0 ? n : majorDim, style); SetSelection(0); SetSize(pos.x, pos.y, size.x, size.y); -- 2.45.2