diff --git a/ECTrainer2/ECTrainerGUI.cpp b/ECTrainer2/ECTrainerGUI.cpp index 444356d..b17c87f 100644 --- a/ECTrainer2/ECTrainerGUI.cpp +++ b/ECTrainer2/ECTrainerGUI.cpp @@ -155,6 +155,7 @@ } bool snapshot = cvui::button(140, 30, "SNAPSHOT"); if (cvui::button(140, 30, "QUIT")) { + PostMessage(_hWndMain, WM_CLOSE, NULL, NULL); Ect()->PWorker()->PostMsg((int)ECTMSG::SOFTWARE_END); } if (Ect()->PBitalMonitor()->IsUseDevice()) { @@ -210,6 +211,7 @@ case WM_CHAR: // キー入力 if (msg.wParam == 27) { #ifdef _DEBUG + PostMessage(_hWndMain, WM_CLOSE, NULL, NULL); Ect()->PWorker()->PostMsg((int)ECTMSG::SOFTWARE_END); #endif }