show cursor when selecting menus via keyboard

svn: r425
This commit is contained in:
Matthew Flatt 2005-07-21 20:58:55 +00:00
parent c7d784fa50
commit e000831d07
3 changed files with 5 additions and 0 deletions

View File

@ -385,6 +385,7 @@ LONG wxDoItemPres(wxItem *item, HWND hWnd, UINT message, WPARAM wParam, LPARAM l
case WM_SYSKEYDOWN:
if ((wParam == VK_MENU) || (wParam == VK_F4)) { /* F4 is close */
wxUnhideCursor();
retval = 1;
break;
}
@ -414,6 +415,7 @@ LONG wxDoItemPres(wxItem *item, HWND hWnd, UINT message, WPARAM wParam, LPARAM l
case WM_SYSCHAR: /* ^^^ fallthrough */
if (message == WM_SYSCHAR) {
if (wParam == VK_MENU) {
wxUnhideCursor();
retval = 1;
break;
}

View File

@ -276,6 +276,7 @@ void wxMenu::SelectMenu(void)
}
}
}
wxUnhideCursor();
}
}

View File

@ -1141,6 +1141,7 @@ static LONG WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, in
break;
case WM_SYSKEYDOWN:
if ((wParam == VK_MENU) || (wParam == VK_F4)) { /* F4 is close */
wxUnhideCursor();
retval = wnd->DefWindowProc(message, wParam, lParam);
}
case WM_KEYUP:
@ -1160,6 +1161,7 @@ static LONG WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, in
}
case WM_SYSCHAR:
if (wParam == VK_MENU) {
wxUnhideCursor();
retval = wnd->DefWindowProc(message, wParam, lParam);
}
case WM_CHAR: /* ^^^ fallthrough */