Changeset 944 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Feb 10, 2008, 7:55:50 PM (18 years ago)
Author:
Gregg Young
Message:

Remove close menu item and button from the tree container (Ticket 216)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r917 r944  
    29322932   */
    29332933
    2934   HWND hwndFrame = (HWND) 0, hwndClient;
     2934  HWND hwndFrame = (HWND) 0, hwndSysMenu, hwndClient;
    29352935  ULONG FrameFlags = FCF_TITLEBAR | FCF_SYSMENU |
    29362936    FCF_SIZEBORDER | FCF_MINMAX | FCF_ICON | FCF_NOBYTEALIGN | FCF_ACCELTABLE;
     
    29502950                                 NULL,
    29512951                                 WS_VISIBLE | fwsAnimate,
    2952                                  FM3ModHandle, TREE_FRAME, &hwndClient);
     2952                                 FM3ModHandle, TREE_FRAME, &hwndClient);
     2953  hwndSysMenu = WinWindowFromID(hwndFrame, FID_SYSMENU);
     2954  if (hwndSysMenu != NULLHANDLE)
     2955  WinSendMsg(hwndSysMenu, MM_SETITEMATTR,
     2956             MPFROM2SHORT(SC_CLOSE, TRUE),
     2957             MPFROM2SHORT(MIA_DISABLED, MIA_DISABLED));
    29532958  if (hwndFrame && hwndClient) {
    29542959    dcd = xmalloc(sizeof(DIRCNRDATA), pszSrcFile, __LINE__);
     
    29652970        if (!WinCreateWindow(hwndFrame,
    29662971                             WC_TREEOPENBUTTON,
    2967                              "O",
     2972                             "Op",
    29682973                             WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS,
    29692974                             ((swp.cx -
Note: See TracChangeset for help on using the changeset viewer.