Skip to content

Commit

Permalink
退出提示
Browse files Browse the repository at this point in the history
  • Loading branch information
chinosk6 committed Jun 25, 2024
1 parent bacf698 commit 960db64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,10 @@ namespace
}
}
}
if (uMsg == WM_CLOSE) {
const int result = MessageBoxW(hWnd, L"Are you sure to exit?", L"Exit Game", MB_ICONQUESTION | MB_YESNO);
if (result != IDYES) return FALSE;
}

if (g_unlock_size) {
if (uMsg == WM_SIZING)
Expand Down

0 comments on commit 960db64

Please sign in to comment.