Changeset 1777 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Jun 13, 2014, 3:51:31 AM (11 years ago)
Author:
Steven Levine
Message:

Rework FM/2 Config menu. Add confirm delete toggle. (Steven)
Rework FM/2 Lite Config menu. Add drag&drop dialog toggle and confirm delete toggles. (Steven)
Correct View, Sort and Filter button initialization. (Steven)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r1704 r1777  
    565565}
    566566
     567/**
     568 * Sync menu item checkmarks to match globals
     569 * Called before submenu or context menu opened
     570 * Does more work than really needed, but makes code easier to maintain
     571 */
     572
    567573static VOID SetToggleChecks(HWND hwndMenu)
    568574{
     
    578584  WinCheckMenuItem(hwndMenu, IDM_AUTOTILE, fAutoTile);
    579585  WinCheckMenuItem(hwndMenu, IDM_TILEBACKWARDS, fTileBackwards);
     586  WinCheckMenuItem(hwndMenu, IDM_CONFIRMDELETE, fConfirmDelete);        // 2014-05-17 SHL
    580587  WinCheckMenuItem(hwndMenu, IDM_TOGGLEDRAGDIALOG, fDragndropDlg);
    581588  WinCheckMenuItem(hwndMenu, IDM_SYNCUPDATES, fSyncUpdates);
     
    54755482    break;
    54765483
     5484  // 2014-05-17 SHL
     5485  case IDM_CONFIRMDELETE:
     5486    SetMenuCheck(WinQueryWindowULong(hwnd, QWL_USER),
     5487                 IDM_CONFIRMDELETE,
     5488                 &fConfirmDelete,
     5489                 TRUE,
     5490                 "ConfirmDelete");
     5491    break;
     5492
    54775493  case IDM_TOGGLEDRAGDIALOG:
    54785494    SetMenuCheck(WinQueryWindowULong(hwnd, QWL_USER),
     
    66416657    }
    66426658    DosSleep(1);
    6643     return 0;                   // Suppress WinDefWindowProc WM_QUIT message generation
     6659    return 0;           // Suppress WinDefWindowProc WM_QUIT message generation
    66446660
    66456661  case UM_CLOSE:
Note: See TracChangeset for help on using the changeset viewer.