X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6d7030871f1376e727902c93f5537165a305e08..f51f94ea2e721d2de718d8fa0bcfad801fa31f99:/src/generic/sashwin.cpp diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index 2f53738112..f64ebd1805 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -198,6 +198,10 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) dragRect = wxRect(xp, yp, newWidth, h); break; } + case wxSASH_NONE: + { + break; + } } wxSashEvent event(GetId(), edge); @@ -271,7 +275,7 @@ void wxSashWindow::OnSize(wxSizeEvent& WXUNUSED(event)) SizeWindows(); } -wxSashEdgePosition wxSashWindow::SashHitTest(int x, int y, int tolerance) +wxSashEdgePosition wxSashWindow::SashHitTest(int x, int y, int WXUNUSED(tolerance)) { int cx, cy; GetClientSize(& cx, & cy); @@ -310,6 +314,10 @@ wxSashEdgePosition wxSashWindow::SashHitTest(int x, int y, int tolerance) return wxSASH_LEFT; break; } + case wxSASH_NONE: + { + break; + } } } } @@ -570,7 +578,7 @@ void wxSashWindow::InitColours() m_hilightColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHILIGHT); #else m_faceColour = *(wxTheColourDatabase->FindColour("LIGHT GREY")); - m_mediumShadowColour = *(wxTheColourDatabase->FindColour("GREY", 1, wxSOLID)); + m_mediumShadowColour = *(wxTheColourDatabase->FindColour("GREY")); m_darkShadowColour = *(wxTheColourDatabase->FindColour("BLACK")); m_lightShadowColour = *(wxTheColourDatabase->FindColour("LIGHT GREY")); m_hilightColour = *(wxTheColourDatabase->FindColour("WHITE"));