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

    r9342 r9345  
    1 /* $Id: win32wbase.cpp,v 1.341 2002-10-11 14:58:36 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.342 2002-10-15 09:18:10 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    13601360  {
    13611361      RECT rect = {0};
     1362      BOOL fCloseButton;
     1363
     1364      fCloseButton = !(windowClass && (windowClass->getClassLongA(GCL_STYLE) & CS_NOCLOSE));
     1365
    13621366      int  height  = getWindowHeight();
    13631367      RECTLOS2 rectOS2;
     
    13731377      rectOS2.yBottom = height - rect.top;
    13741378      rectOS2.yTop    = height - rect.bottom;
    1375       OSLibWinPositionFrameControls(getOS2FrameWindowHandle(), &rectOS2, dwStyle, dwExStyle, IconForWindow(ICON_SMALL));
     1379
     1380      //@@PF Disable close button as well when needed by application
     1381      OSLibChangeCloseButtonState(getOS2FrameWindowHandle(), fCloseButton);
     1382      OSLibWinPositionFrameControls(getOS2FrameWindowHandle(), &rectOS2,
     1383                                    dwStyle, dwExStyle, IconForWindow(ICON_SMALL),
     1384                                    fCloseButton);
    13761385  }
    13771386  return rc;
Note: See TracChangeset for help on using the changeset viewer.