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

@@ -351,7 +351,12 @@ bool wxDialog::Show(bool show)
// a message before the deletion.
while (wxModalDialogs.Member(this) && m_modalShowing && GetMessage(&msg, NULL, 0, 0))
{
if (!IsDialogMessage((HWND) GetHWND(), &msg))
if (m_acceleratorTable.Ok() &&
::TranslateAccelerator((HWND) GetHWND(), (HACCEL) m_acceleratorTable.GetHACCEL(), &msg))
{
// Have processed the message
}
else if (!IsDialogMessage((HWND) GetHWND(), &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);