mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ clean code refactoring
This commit is contained in:
parent
e333c0ab7e
commit
f59b70b301
@ -667,10 +667,12 @@ int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInst,LPSTR lpCmdLine,int n
|
||||
|
||||
while (GetMessage(&msg,NULL,0,0))
|
||||
{
|
||||
if (IsWindow(hDlgFindReplace) && (msg.hwnd == hDlgFindReplace || IsChild(hDlgFindReplace, msg.hwnd)))
|
||||
if (TranslateAccelerator(hDlgFindReplace, hAccFindReplace, &msg) || IsDialogMessage(hDlgFindReplace, &msg))
|
||||
if (IsWindow(hDlgFindReplace) && ((msg.hwnd == hDlgFindReplace) || IsChild(hDlgFindReplace, msg.hwnd)))
|
||||
{
|
||||
int iTr = TranslateAccelerator(hDlgFindReplace, hAccFindReplace, &msg);
|
||||
if (iTr || IsDialogMessage(hDlgFindReplace, &msg))
|
||||
continue;
|
||||
|
||||
}
|
||||
if (!TranslateAccelerator(hwnd,hAccMain,&msg)) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user