]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
remove default wxDC ctor to make it impossible to construct DCs without the associate...
[wxWidgets.git] / src / common / wincmn.cpp
index 8d16cbcdfdc9f16c7b16f78c463cdcffdc18e548..5c25f4f47a723cf36f027f77fe8f99b06dbaf982 100644 (file)
@@ -1051,6 +1051,11 @@ bool wxWindowBase::RemoveEventHandler(wxEvtHandler *handler)
     return false;
 }
 
+bool wxWindowBase::HandleWindowEvent(wxEvent& event) const
+{
+    return GetEventHandler()->SafelyProcessEvent(event);
+}
+
 // ----------------------------------------------------------------------------
 // colours, fonts &c
 // ----------------------------------------------------------------------------
@@ -2645,7 +2650,7 @@ wxWindow *wxWindowBase::DoGetSibling(WindowOrder order) const
                     _T("GetPrev/NextSibling() don't work for TLWs!") );
 
     wxWindowList& siblings = GetParent()->GetChildren();
-    wxWindowList::compatibility_iterator i = siblings.Find(this);
+    wxWindowList::compatibility_iterator i = siblings.Find((wxWindow *)this);
     wxCHECK_MSG( i, NULL, _T("window not a child of its parent?") );
 
     if ( order == OrderBefore )