Fixed mouse handling for captured windows

Didn't need most of the cshelp fix


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-05-12 16:08:47 +00:00
parent 5f9ab82db2
commit 449d48f9e1
2 changed files with 17 additions and 7 deletions

View File

@@ -2421,9 +2421,15 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
y = GET_Y_LPARAM(lParam);
// redirect the event to a static control if necessary
wxWindow *win = FindWindowForMouseEvent(this, &x, &y);
processed = win->HandleMouseEvent(message, x, y, wParam);
if (this == GetCapture())
{
processed = HandleMouseEvent(message, x, y, wParam);
}
else
{
wxWindow *win = FindWindowForMouseEvent(this, &x, &y);
processed = win->HandleMouseEvent(message, x, y, wParam);
}
}
}
break;