X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ee05f92add0ab92ce08ecb827e3be41336aa06..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/generic/sashwin.cpp diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index f1524dc61a..0b8a17a8e4 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -35,7 +35,7 @@ #include "wx/laywin.h" -DEFINE_EVENT_TYPE(wxEVT_SASH_DRAGGED) +wxDEFINE_EVENT( wxEVT_SASH_DRAGGED, wxSashEvent ); IMPLEMENT_DYNAMIC_CLASS(wxSashWindow, wxWindow) IMPLEMENT_DYNAMIC_CLASS(wxSashEvent, wxCommandEvent) @@ -115,8 +115,8 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) // the area to draw on. wxWindow* parent = this; - while (parent && !parent->IsKindOf(CLASSINFO(wxDialog)) && - !parent->IsKindOf(CLASSINFO(wxFrame))) + while (parent && !wxDynamicCast(parent, wxDialog) && + !wxDynamicCast(parent, wxFrame)) parent = parent->GetParent(); wxScreenDC::StartDrawingOnTop(parent);