X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40fab78bcf79e9a6786859ec65ab3c0d675b73de..4b7b750dd1ffd0d26b78728adb613b282a37c058:/src/generic/sashwin.cpp?ds=sidebyside diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index f5ec7897f2..693e74f1a4 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -22,12 +22,12 @@ #pragma hdrstop #endif +#if wxUSE_SASH + #ifndef WX_PRECOMP #include "wx/wx.h" #endif -#if wxUSE_SASH - #include #include @@ -36,6 +36,8 @@ #include "wx/sashwin.h" #include "wx/laywin.h" +DEFINE_EVENT_TYPE(wxEVT_SASH_DRAGGED) + IMPLEMENT_DYNAMIC_CLASS(wxSashWindow, wxWindow) IMPLEMENT_DYNAMIC_CLASS(wxSashEvent, wxCommandEvent) @@ -98,7 +100,8 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) // reset the cursor #if defined(__WXMOTIF__) || defined(__WXGTK__) - SetCursor(* wxSTANDARD_CURSOR); + // Not necessary and in fact inhibits proper cursor setting (JACS 8/2000) + //SetCursor(* wxSTANDARD_CURSOR); #endif #ifdef __WXMSW__ SetCursor(wxNullCursor); @@ -655,7 +658,7 @@ void wxSashWindow::SizeWindows() void wxSashWindow::InitColours() { // Shadow colours -#if defined(__WIN95__) +#ifndef __WIN16__ m_faceColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE); m_mediumShadowColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW); m_darkShadowColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DDKSHADOW);