]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/tipwin.cpp
use window's font instead of the default one in wxStatusBar
[wxWidgets.git] / src / generic / tipwin.cpp
index 1dd67eafb333a8fd930b490aee3e9dcbbe9c66c6..12087b7b4b838565f27af2ca741420db9f5d4560 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/dcclient.h"
     #include "wx/timer.h"
+    #include "wx/settings.h"
 #endif // WX_PRECOMP
 
 #ifdef __WXGTK__
     #include <gtk/gtk.h>
 #endif
 
-#include "wx/settings.h"
-
 // ----------------------------------------------------------------------------
 // constants
 // ----------------------------------------------------------------------------
@@ -363,7 +362,7 @@ void wxTipWindowView::OnMouseMove(wxMouseEvent& event)
     const wxRect& rectBound = m_parent->m_rectBound;
 
     if ( rectBound.width &&
-            !rectBound.Inside(ClientToScreen(event.GetPosition())) )
+            !rectBound.Contains(ClientToScreen(event.GetPosition())) )
     {
         // mouse left the bounding rect, disappear
         m_parent->Close();