[JOY] Add IDCANCEL action to MainPageProc (#6346)

Based on KRosUser's joycancel.patch. Enable Esc key and Close button.
JIRA issue: CORE-19424
Insert a line of "case IDCANCEL:".
This commit is contained in:
Katayama Hirofumi MZ 2024-01-14 20:48:34 +09:00 committed by GitHub
parent 92db51883a
commit cbc3ee2287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,6 +270,7 @@ MainPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
case IDOK:
case IDCANCEL:
DestroyIcon(s_hIcon);
DestroyIcon(s_hIconSm);
EndDialog(hwndDlg,LOWORD(wParam));