Implemented wxMouseCaptureChangedEvent and made wxGenericDragImage check it
the capture before release it. Documented wxMouseCaptureChangedEvent and GetCapture/FindCapture. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -295,7 +295,13 @@ bool wxGenericDragImage::EndDrag()
|
||||
{
|
||||
if (m_window)
|
||||
{
|
||||
m_window->ReleaseMouse();
|
||||
#ifdef __WXMSW__
|
||||
// Under Windows we can be pretty sure this test will give
|
||||
// the correct results
|
||||
if (wxWindow::GetCapture() == m_window)
|
||||
#endif
|
||||
m_window->ReleaseMouse();
|
||||
|
||||
if (m_cursor.Ok() && m_oldCursor.Ok())
|
||||
{
|
||||
m_window->SetCursor(m_oldCursor);
|
||||
|
Reference in New Issue
Block a user