- 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);
+ }