]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
compilation fix
[wxWidgets.git] / src / msw / control.cpp
index 6788e0ceb7385381535f08bc84d97ae8ea5fab22..b8ccc635511b9163b45cec00c72c2a64a899043f 100644 (file)
@@ -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)