Accelerators now work for wxDialog; wxToolBarSimple fixed when dragging out of

the toolbar


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-08-21 17:47:19 +00:00
parent 257f1d9b85
commit 567da5c600
4 changed files with 73 additions and 56 deletions

View File

@@ -4381,7 +4381,18 @@ void wxWindow::OnIdle(wxIdleEvent& event)
{
// Generate a LEAVE event
m_mouseInWindow = FALSE;
MSWOnMouseLeave(pt.x, pt.y, 0);
int state;
if (::GetKeyState(VK_SHIFT) != 0)
state |= MK_SHIFT;
if (::GetKeyState(VK_CONTROL) != 0)
state |= MK_CONTROL;
// Unfortunately the mouse button and keyboard state may have changed
// by the time the OnIdle function is called, so 'state' may be
// meaningless.
MSWOnMouseLeave(pt.x, pt.y, state);
}
}
UpdateWindowUI();