added wxEVT_MOUSE_CAPTURE_LOST event and code for correctly handling capture loss (bug #1153662)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4107,9 +4107,14 @@ bool wxWindowMSW::HandlePaletteChanged(WXHWND hWndPalChange)
|
||||
|
||||
bool wxWindowMSW::HandleCaptureChanged(WXHWND hWndGainedCapture)
|
||||
{
|
||||
wxMouseCaptureChangedEvent event(GetId(), wxFindWinFromHandle(hWndGainedCapture));
|
||||
event.SetEventObject(this);
|
||||
wxWindow *win = wxFindWinFromHandle(hWndGainedCapture);
|
||||
|
||||
// notify windows on the capture stack about lost capture
|
||||
// (see http://sourceforge.net/tracker/index.php?func=detail&aid=1153662&group_id=9863&atid=109863):
|
||||
wxWindowBase::NotifyCaptureLost(win);
|
||||
|
||||
wxMouseCaptureChangedEvent event(GetId(), win);
|
||||
event.SetEventObject(this);
|
||||
return GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user