X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e33234f9356fabe3561574a9fe1268f6a0899e7..3f4f90c2a0c1f274d1918b320132ed0ca2922fe5:/contrib/src/fl/toolwnd.cpp diff --git a/contrib/src/fl/toolwnd.cpp b/contrib/src/fl/toolwnd.cpp index 06db16ed57..a018ce3c5c 100644 --- a/contrib/src/fl/toolwnd.cpp +++ b/contrib/src/fl/toolwnd.cpp @@ -41,9 +41,9 @@ static const unsigned char _gCheckerImg[16] = { _IMG_A,_IMG_B,_IMG_C,_IMG_D, /***** Implementation for class wxToolWindow *****/ -IMPLEMENT_DYNAMIC_CLASS( wxToolWindow, wxWindow ) +IMPLEMENT_DYNAMIC_CLASS( wxToolWindow, wxFrame) -BEGIN_EVENT_TABLE( wxToolWindow, wxWindow ) +BEGIN_EVENT_TABLE( wxToolWindow, wxFrame ) EVT_PAINT ( wxToolWindow::OnPaint ) EVT_MOTION ( wxToolWindow::OnMotion ) @@ -338,21 +338,20 @@ void wxToolWindow::DrawHintRect( const wxRect& r ) void wxToolWindow::SetHintCursor( int type ) { - if ( mResizeStarted ) return; + if ( mResizeStarted ) + return; if ( type == HITS_WND_NOTHING || type == HITS_WND_CLIENT ) { // the cursor is out of window - reset to arrow - if ( mMouseCaptured && !mResizeStarted ) + if ( mMouseCaptured ) { ReleaseMouse(); mMouseCaptured = FALSE; } - if ( mCursorType == HITS_WND_NOTHING && !mResizeStarted ) - - SetCursor( wxCURSOR_ARROW ); + SetCursor( wxCURSOR_ARROW ); mCursorType = type; @@ -868,7 +867,7 @@ void cbMiniButton::Reset() void cbCloseBox::Draw( wxDC& dc ) { -#ifdef __WXGTK__ +#if defined(__WXGTK__) || defined(__WXX11__) cbMiniButton::Draw( dc );