X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e69d6b435a4dd5415caf3750db62cf45b6f373..6a570331df89d26dfb682bedab0faf13e2c285d8:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 6788e0ceb7..b8ccc63551 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -56,15 +56,11 @@ wxControl::wxControl() wxControl::~wxControl() { m_isBeingDeleted = TRUE; +} - // If we delete an item, we should initialize the parent panel, - // because it could now be invalid. - wxWindow *parent = (wxWindow *)GetParent(); - if (parent) - { - if (parent->GetDefaultItem() == (wxButton*) this) - parent->SetDefaultItem(NULL); - } +wxSize wxControl::DoGetBestSize() +{ + return wxSize(DEFAULT_ITEM_WIDTH, DEFAULT_ITEM_HEIGHT); } bool wxControl::ProcessCommand(wxCommandEvent& event)