Use wxWindow::ReleaseMouse() instead of MSW ::ReleaseCapture() function.
As we capture the mouse using wxWindow::CaptureMouse(), we must release it with ReleaseMouse() and not just ReleaseCapture(). Closes #11791. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -187,7 +187,7 @@ void wxBitmapToggleButton::OnMouse(wxMouseEvent &event)
|
|||||||
|
|
||||||
if (event.LeftUp())
|
if (event.LeftUp())
|
||||||
{
|
{
|
||||||
ReleaseCapture();
|
ReleaseMouse();
|
||||||
m_capturing = false;
|
m_capturing = false;
|
||||||
if (mouse_in)
|
if (mouse_in)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user