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/win32wbasenonclient.cpp

    r9008 r9345  
    1 /* $Id: win32wbasenonclient.cpp,v 1.43 2002-08-15 15:45:46 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.44 2002-10-15 09:18:12 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    12401240
    12411241    case HTSYSMENU:
    1242       if (!(GetClassWord(Win32Hwnd,GCW_STYLE) & CS_NOCLOSE))
     1242      if (!(GetClassLongA(getWindowHandle(),GCL_STYLE) & CS_NOCLOSE))
    12431243        SendMessageA(getWindowHandle(), WM_SYSCOMMAND,SC_CLOSE,lParam);
    12441244      break;
Note: See TracChangeset for help on using the changeset viewer.