-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PCMan is preventing shutdown #29 #30
Conversation
Lite/MainFrm.cpp
Outdated
@@ -79,6 +79,7 @@ BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) | |||
ON_WM_INITMENUPOPUP() | |||
ON_WM_CLOSE() | |||
ON_WM_ACTIVATE() | |||
ON_WM_QUERYENDSESSION() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think TAB is better than 4 space here.. (follow origin coding style)
Lite/MainFrm.cpp
Outdated
@@ -829,6 +830,11 @@ void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) | |||
#endif | |||
} | |||
|
|||
BOOL CMainFrame::OnQueryEndSession() | |||
{ | |||
return 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think TAB is better than 4 space here.. (follow origin coding style)
Lite/MainFrm.h
Outdated
@@ -181,6 +181,7 @@ class CMainFrame : public CFrameWnd | |||
afx_msg void OnSize(UINT nType, int cx, int cy); | |||
afx_msg void OnClose(); | |||
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); | |||
afx_msg BOOL OnQueryEndSession(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think TAB is better than 4 space here.. (follow origin coding style)
加入.editorconfig,VS2017 tab預設好像是4,那就不會有問題 |
VS2017 supports this natively.
改變想法,用tab比較好,tab的長度我是直接照linux kernel style用8 (github上的預設也是8) |
我也比較喜歡 TAB |
經測試,加入WM_QUERYENDSESSION處理就有效了