mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-17 19:18:06 -05:00
Any application using non-modal dialogs must use IsDialogMessage in
its main message loop, otherwise keyboard accelerators will not work in the dialogs. I MUST NOT FORGET THIS AGAIN. [originally from svn r1981]
This commit is contained in:
parent
77475c7cdd
commit
b2c7474747
@ -2000,8 +2000,11 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
|||||||
* Main message loop.
|
* Main message loop.
|
||||||
*/
|
*/
|
||||||
while (GetMessage(&msg, NULL, 0, 0) == 1) {
|
while (GetMessage(&msg, NULL, 0, 0) == 1) {
|
||||||
TranslateMessage(&msg);
|
if (!(IsWindow(keylist) && IsDialogMessage(keylist, &msg)) &&
|
||||||
DispatchMessage(&msg);
|
!(IsWindow(aboutbox) && IsDialogMessage(aboutbox, &msg))) {
|
||||||
|
TranslateMessage(&msg);
|
||||||
|
DispatchMessage(&msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clean up the system tray icon */
|
/* Clean up the system tray icon */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user