Changeset 953 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Feb 16, 2008, 3:15:16 AM (17 years ago)
Author:
Steven Levine
Message:

Rework code and resources to support settings menu conditional cascade
Optimize last settings menu save/restore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r950 r953  
    4444  22 Nov 07 GKY Use CopyPresParams to fix presparam inconsistencies in menus
    4545  10 Jan 08 SHL Sync with CfgDlgProc mods
     46  15 Feb 08 SHL Sync with settings menu rework
    4647
    4748***********************************************************************/
     
    6364#include "errutil.h"                    // Dos_Error...
    6465#include "strutil.h"                    // GetPString
     66#include "notebook.h"                   // CfgDlgProc
    6567#include "fm3dll.h"
    6668
     
    23732375        break;
    23742376
    2375       case IDM_NOTEBOOK:
     2377      case IDM_TREECNRVIEWSETTINGS:
    23762378        if (!ParentIsDesktop(dcd->hwndParent, dcd->hwndParent))
    2377           PostMsg(dcd->hwndParent, msg, MPFROMLONG(IDM_TREECNRSETTINGS), mp2);
     2379          PostMsg(dcd->hwndParent, msg, MPFROMLONG(IDM_TREECNRVIEWSETTINGS), mp2);
    23782380        else {
    23792381          WinDlgBox(HWND_DESKTOP,
     
    23822384                    FM3ModHandle,
    23832385                    CFG_FRAME,
    2384                     MPFROMLONG(IDM_TREECNRSETTINGS));
     2386                    MPFROMLONG(IDM_TREECNRVIEWSETTINGS));
    23852387        }
    23862388        break;
     
    29532955                                 NULL,
    29542956                                 WS_VISIBLE | fwsAnimate,
    2955                                 FM3ModHandle, TREE_FRAME, &hwndClient);
     2957                                FM3ModHandle, TREE_FRAME, &hwndClient);
    29562958  if (hwndParent != HWND_DESKTOP) {
    29572959    hwndSysMenu = WinWindowFromID(hwndFrame, FID_SYSMENU);
    29582960    if (hwndSysMenu != NULLHANDLE)
    29592961      WinSendMsg(hwndSysMenu, MM_SETITEMATTR,
    2960                 MPFROM2SHORT(SC_CLOSE, TRUE),
    2961                 MPFROM2SHORT(MIA_DISABLED, MIA_DISABLED));
     2962                MPFROM2SHORT(SC_CLOSE, TRUE),
     2963                MPFROM2SHORT(MIA_DISABLED, MIA_DISABLED));
    29622964    if (!fFreeTree)
    29632965      WinSendMsg(hwndSysMenu, MM_SETITEMATTR,
    2964                 MPFROM2SHORT(SC_MOVE, TRUE),
    2965                 MPFROM2SHORT(MIA_DISABLED, MIA_DISABLED));
     2966                MPFROM2SHORT(SC_MOVE, TRUE),
     2967                MPFROM2SHORT(MIA_DISABLED, MIA_DISABLED));
    29662968  }
    29672969  if (hwndFrame && hwndClient) {
     
    29792981        if (!WinCreateWindow(hwndFrame,
    29802982                             WC_TREEOPENBUTTON,
    2981                              "Op",
     2983                             "Op",
    29822984                             WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS,
    29832985                             ((swp.cx -
     
    30683070        if (dcd->oldproc == 0)
    30693071          Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__,
    3070                     "WinSubclassWindow");
     3072                    "WinSubclassWindow");
    30713073        if (!PostMsg(dcd->hwndCnr, UM_SETUP, MPVOID, MPVOID))
    30723074          WinSendMsg(dcd->hwndCnr, UM_SETUP, MPVOID, MPVOID);
Note: See TracChangeset for help on using the changeset viewer.