]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix window close issues
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Tue, 7 Aug 2012 17:53:02 +0000 (13:53 -0400)
committerBen Kaduk <kaduk@mit.edu>
Wed, 29 Aug 2012 18:50:20 +0000 (14:50 -0400)
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

src/windows/leash/MainFrm.cpp

index 54815868ab786b9ff0b68580114facb32e711ad6..1e22283197546cf768ade9935bc7abea70da7085 100644 (file)
@@ -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;