Ignore:
Timestamp:
Oct 15, 2002, 11:18:12 AM (23 years ago)
Author:
sandervl
Message:

PF: Disable close button & close item in system menu for windows with SC_NOCLOSE class style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/menu.cpp

    r8872 r9345  
    1 /* $Id: menu.cpp,v 1.49 2002-07-15 10:16:28 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.50 2002-10-15 09:18:09 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    28892889#ifdef __WIN32OS2__
    28902890                        //double click on system menu -> close application
    2891                         PostMessageA(hwnd, WM_SYSCOMMAND,SC_CLOSE, msg.lParam);
     2891                        if (!(GetClassLongA(hwnd, GCL_STYLE) & CS_NOCLOSE))
     2892                          PostMessageA(hwnd, WM_SYSCOMMAND, SC_CLOSE, msg.lParam);
    28922893#endif
    28932894                        fEndMenu = TRUE;
Note: See TracChangeset for help on using the changeset viewer.