]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/scrarrow.cpp
update button style to include BS_MULTILINE when a multiline label is set
[wxWidgets.git] / src / univ / scrarrow.cpp
index 76347bfa07ee818d277e0f93b1521cb0539bf6ca..312bdeee1f1047afc4c573b2c721bfd4fde5be3e 100644 (file)
@@ -24,6 +24,7 @@
 #endif
 
 #ifndef WX_PRECOMP
+    #include "wx/window.h"
 #endif
 
 #include "wx/univ/scrtimer.h"
@@ -173,7 +174,7 @@ bool wxScrollArrows::HandleMouseMove(const wxMouseEvent& event) const
     }
     else // Moving() or Entering(), treat them the same here
     {
-        arrow = m_control->HitTest(event.GetPosition());
+        arrow = m_control->HitTestArrow(event.GetPosition());
     }
 
 #if wxUSE_TIMER
@@ -234,7 +235,7 @@ bool wxScrollArrows::HandleMouse(const wxMouseEvent& event) const
     {
         if ( !m_captureData )
         {
-            Arrow arrow = m_control->HitTest(event.GetPosition());
+            Arrow arrow = m_control->HitTestArrow(event.GetPosition());
             if ( arrow == Arrow_None )
             {
                 // mouse pressed over something else
@@ -298,4 +299,3 @@ bool wxScrollArrows::HandleMouse(const wxMouseEvent& event) const
 
     return true;
 }
-