]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dragimgg.cpp
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / generic / dragimgg.cpp
index 99286fbd2836cd6e7e5b6f36aaadae9ee9c6e980..d861987d170cd3b8b28245facdcfa0bfd319ff9c 100644 (file)
@@ -324,7 +324,7 @@ bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, wxW
 
     wxSize sz = fullScreenRect->GetSize();
 
 
     wxSize sz = fullScreenRect->GetSize();
 
-    if (fullScreenRect->GetParent() && !fullScreenRect->IsKindOf(CLASSINFO(wxFrame)))
+    if (fullScreenRect->GetParent() && !wxDynamicCast(fullScreenRect, wxFrame))
         fullScreenRect->GetParent()->ClientToScreen(& x, & y);
 
     rect.x = x; rect.y = y;
         fullScreenRect->GetParent()->ClientToScreen(& x, & y);
 
     rect.x = x; rect.y = y;