diff options
author | Kevin Wasserman <kevin.wasserman@painless-security.com> | 2012-08-07 13:53:02 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2012-08-29 14:50:20 -0400 |
commit | 1b977a4e768b1a54ebffcecdf356e54e6fa86ce6 (patch) | |
tree | 8593e699f1d005bc274c80c67433a28829a18e3b /src/windows/leash | |
parent | c5c528f955e4f6348e8e278cc7f6f65fc3a1a516 (diff) | |
download | krb5-1b977a4e768b1a54ebffcecdf356e54e6fa86ce6.tar.gz krb5-1b977a4e768b1a54ebffcecdf356e54e6fa86ce6.tar.xz krb5-1b977a4e768b1a54ebffcecdf356e54e6fa86ce6.zip |
Fix window close issues
Stop filtering out SC_CLOSE. 'X' button works more reliably, also alt-F4.
Remove minimize box from style.
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7332 (new)
queue: kfw
target_version: 1.10.4
tags: pullup
Diffstat (limited to 'src/windows/leash')
-rw-r--r-- | src/windows/leash/MainFrm.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/windows/leash/MainFrm.cpp b/src/windows/leash/MainFrm.cpp index 54815868ab..1e22283197 100644 --- a/src/windows/leash/MainFrm.cpp +++ b/src/windows/leash/MainFrm.cpp @@ -186,10 +186,6 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) { - if ( pMsg->message == WM_SYSCOMMAND && (pMsg->wParam & 0xfff0) == SC_CLOSE ) - { - return TRUE; - } return CLeashFrame::PreTranslateMessage(pMsg); } @@ -197,7 +193,7 @@ BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { // Use the specific class name we established earlier // Remove the Minimize and Maximize buttons -// cs.style &= ~WS_MINIMIZEBOX; + cs.style &= ~WS_MINIMIZEBOX; cs.style &= ~WS_MAXIMIZEBOX; // Initialize the extended window style to display a TaskBar entry with WS_EX_APPWINDOW cs.dwExStyle |= WS_EX_APPWINDOW; |