Changeset 953 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Feb 16, 2008, 3:15:16 AM (18 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/mainwnd.c

    r951 r953  
    5050  19 Jan 08 GKY Rework Utilities menu
    5151  05 Feb 08 SHL Restore no-prescan drives if restoring named state
     52  14 Feb 08 SHL Rework to support settings menu conditional cascade
    5253
    5354***********************************************************************/
     
    7374#include "errutil.h"                    // Dos_Error...
    7475#include "strutil.h"                    // GetPString
     76#include "notebook.h"                   // CfgDlgProc CfgMenuInit
    7577#include "fm3dll.h"
    7678
     
    46904692  case IDM_NOTEBOOK:
    46914693  case IDM_DIRCNRSETTINGS:
    4692   case IDM_COLLECTORSETTINGS:
    4693   case IDM_TREECNRSETTINGS:
     4694  case IDM_DIRVIEWSETTINGS:
     4695  case IDM_DIRSORTSETTINGS:
     4696  case IDM_COLLECTORVIEWSETTINGS:
     4697  case IDM_COLLECTORSORTSETTINGS:
    46944698  case IDM_ARCHIVERSETTINGS:
     4699  case IDM_TREECNRVIEWSETTINGS:
     4700  case IDM_TREECNRSORTSETTINGS:
    46954701  case IDM_VIEWERSETTINGS:
     4702  case IDM_VIEWERSETTINGS2:
    46964703  case IDM_COMPARESETTINGS:
     4704  case IDM_MONOLITHICSETTINGS:
     4705  case IDM_GENERALSETTINGS:
     4706  case IDM_SCANSETTINGS:
     4707  case IDM_BUBBLESSETTINGS:
    46974708  case IDM_QUICKSETTINGS:
    46984709    WinDlgBox(HWND_DESKTOP,
     
    49814992  case IDM_HIDEMENU:
    49824993    {
    4983       HWND hwndMenu;
    4984 
    4985       hwndMenu = WinQueryWindowULong(hwnd, QWL_USER);
    4986       MenuInvisible = (MenuInvisible) ? FALSE : TRUE;
     4994      HWND hwndMenu = WinQueryWindowULong(hwnd, QWL_USER);
     4995      MenuInvisible = MenuInvisible ? FALSE : TRUE;
    49874996      if (MenuInvisible) {
    49884997        WinSetParent(hwndMenu, HWND_OBJECT, FALSE);
     
    55195528    WinSendMsg(hwnd, UM_ADDTOMENU, MPVOID, MPVOID);
    55205529    SetToggleChecks(hwndMenu);
     5530    CfgMenuInit(hwndMenu, FALSE);       // 14 Feb 08 SHL
    55215531    SetConditionalCascade(hwndMenu, IDM_COMMANDLINESUBMENU, IDM_COMMANDLINE);
    55225532    SetConditionalCascade(hwndMenu, IDM_TOOLSUBMENU, IDM_TOOLBAR);
Note: See TracChangeset for help on using the changeset viewer.