X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e69d6b435a4dd5415caf3750db62cf45b6f373..c94ad3c365a7a2b12346258f3d6b26432f36fd8d:/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)