]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
set extra margins to be 0 by default, not 50
[wxWidgets.git] / src / msw / window.cpp
index 45e349fff9ff32c51e2eb507fe8fdb0abf180d44..ccd1fa6a251176e56ea307242890abf748402a3d 100644 (file)
@@ -546,7 +546,7 @@ wxString wxWindowMSW::GetTitle() const
     return wxGetWindowText(GetHWND());
 }
 
-void wxWindowMSW::CaptureMouse()
+void wxWindowMSW::DoCaptureMouse()
 {
     HWND hWnd = GetHwnd();
     if ( hWnd )
@@ -555,7 +555,7 @@ void wxWindowMSW::CaptureMouse()
     }
 }
 
-void wxWindowMSW::ReleaseMouse()
+void wxWindowMSW::DoReleaseMouse()
 {
     if ( !::ReleaseCapture() )
     {
@@ -1180,7 +1180,7 @@ void wxWindowMSW::OnIdle(wxIdleEvent& WXUNUSED(event))
     // Check if we need to send a LEAVE event
     if ( m_mouseInWindow )
     {
-        if ( !IsMouseInWindow() )
+        if ( !IsMouseInWindow() && HasCapture())
         {
             // Generate a LEAVE event
             m_mouseInWindow = FALSE;