1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-16 03:53:01 -05:00

Make sure we always unhide the mouse pointer when the System menu is

displayed.

[originally from svn r1393]
This commit is contained in:
Simon Tatham 2001-11-21 22:31:05 +00:00
parent c2ae9e5537
commit cce8878289

View File

@ -1687,14 +1687,23 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
case IDM_ABOUT: case IDM_ABOUT:
showabout(hwnd); showabout(hwnd);
break; break;
case SC_MOUSEMENU:
/*
* We get this if the System menu has been activated
* using the mouse.
*/
show_mouseptr(1);
break;
case SC_KEYMENU: case SC_KEYMENU:
/* /*
* We get this if the System menu has been activated. * We get this if the System menu has been activated
* This might happen from within TranslateKey, in which * using the keyboard. This might happen from within
* case it really wants to be followed by a `space' * TranslateKey, in which case it really wants to be
* character to actually _bring the menu up_ rather * followed by a `space' character to actually _bring
* than just sitting there in `ready to appear' state. * the menu up_ rather than just sitting there in
* `ready to appear' state.
*/ */
show_mouseptr(1); /* make sure pointer is visible */
if( lParam == 0 ) if( lParam == 0 )
PostMessage(hwnd, WM_CHAR, ' ', 0); PostMessage(hwnd, WM_CHAR, ' ', 0);
break; break;