Patch #514836 - Tested by Hans

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2002-02-09 15:03:33 +00:00
parent 167a4bb9fd
commit db693128dd

View File

@@ -338,21 +338,20 @@ void wxToolWindow::DrawHintRect( const wxRect& r )
void wxToolWindow::SetHintCursor( int type ) void wxToolWindow::SetHintCursor( int type )
{ {
if ( mResizeStarted ) return; if ( mResizeStarted )
return;
if ( type == HITS_WND_NOTHING || type == HITS_WND_CLIENT ) if ( type == HITS_WND_NOTHING || type == HITS_WND_CLIENT )
{ {
// the cursor is out of window - reset to arrow // the cursor is out of window - reset to arrow
if ( mMouseCaptured && !mResizeStarted ) if ( mMouseCaptured )
{ {
ReleaseMouse(); ReleaseMouse();
mMouseCaptured = FALSE; mMouseCaptured = FALSE;
} }
if ( mCursorType == HITS_WND_NOTHING && !mResizeStarted ) SetCursor( wxCURSOR_ARROW );
SetCursor( wxCURSOR_ARROW );
mCursorType = type; mCursorType = type;