]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/splitter.cpp
DP: GetBitmap() added to wxImageList
[wxWidgets.git] / src / generic / splitter.cpp
index c5daa74ee8bfd96366e6def43fb6bd7e6813a3c7..7f0ec5df0f93815b35bca7605be4813778434ace 100644 (file)
@@ -173,7 +173,6 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
         m_dragMode = wxSPLIT_DRAG_NONE;
 
         SetCursor(*wxSTANDARD_CURSOR);
-        wxSetCursor(*wxSTANDARD_CURSOR);
     }
        else if (event.LeftUp() && m_dragMode == wxSPLIT_DRAG_DRAGGING)
        {
@@ -259,19 +258,15 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
                if ( m_splitMode == wxSPLIT_VERTICAL )
                 {
                        SetCursor(*m_sashCursorWE);
-                    // Windows needs the following
-                       wxSetCursor(*m_sashCursorWE);
                 }
                 else
                 {
                        SetCursor(*m_sashCursorNS);
-                       wxSetCursor(*m_sashCursorNS);
                 }
         }
         else
         {
            SetCursor(*wxSTANDARD_CURSOR);
-           wxSetCursor(*wxSTANDARD_CURSOR);
         }
        }
        else if ( (event.Dragging() && (m_dragMode == wxSPLIT_DRAG_DRAGGING)) ||
@@ -280,12 +275,10 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
          if ( m_splitMode == wxSPLIT_VERTICAL )
          {
                SetCursor(*m_sashCursorWE);
-               wxSetCursor(*m_sashCursorWE);
          }
          else
          {
                SetCursor(*m_sashCursorNS);
-               wxSetCursor(*m_sashCursorNS);
          }
 
         // Detect that this is really a drag: we've moved more than 1 pixel either way
@@ -316,8 +309,6 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
     }
     else
     {
-        SetCursor(*wxSTANDARD_CURSOR);
-        wxSetCursor(*wxSTANDARD_CURSOR);
     }
 }
 
@@ -429,8 +420,8 @@ void wxSplitterWindow::DrawSash(wxDC& dc)
             dc.DrawLine(m_sashPosition+m_sashSize-2, 1, m_sashPosition+m_sashSize-2, h-1);
 
             dc.SetPen(*m_darkShadowPen);
-            dc.DrawLine(m_sashPosition+m_sashSize-1, 2, m_sashPosition+m_sashSize-1, h-2);
-        }
+                       dc.DrawLine(m_sashPosition+m_sashSize-1, 2, m_sashPosition+m_sashSize-1, h-2);
+               }
         else
         {
             dc.SetPen(*m_facePen);