]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/sashwin.cpp
updated setup.h for OpenVMS
[wxWidgets.git] / src / generic / sashwin.cpp
index aab0b33b908bb2d1939258ce118cddfab864343e..0b8a17a8e477b58b6c6dfb3481861a052ebd2ee1 100644 (file)
@@ -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);