Changeset 1471 for trunk/dll/walkem.c


Ignore:
Timestamp:
Oct 14, 2009, 1:43:04 AM (16 years ago)
Author:
Steven Levine
Message:

Remember last filter mask selection
Use Ctrl-click to select state or commonly used directory quicklist entry without activating.
Use Ctrl-click to select walk dialog user list entry without activating.
Avoid drivebar MB2 exception
Remember last seek and scan mask selection across runs
Avoid traps when changing tree container display style
Restore missing drives to drive list dropdown
Minor documentation updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/walkem.c

    r1438 r1471  
    3535  24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file
    3636  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
     37  06 Oct 09 SHL Ctrl-select selects Walk Dialog listbox entry, but suppresses action
    3738
    3839***********************************************************************/
     
    10691070        APIRET rc;
    10701071
     1072        // 06 Oct 09 SHL Ctrl-select selects, but suppresses action
     1073        SetShiftState();
     1074        if ((shiftstate & (KC_CTRL | KC_SHIFT | KC_ALT)) == KC_CTRL)
     1075          break;
    10711076        DosError(FERR_DISABLEHARDERR);
    10721077        hDir = HDIR_CREATE;
     
    12341239
    12351240    case WALK_DELETE:
    1236       *szBuff = 0;
    1237       WinQueryDlgItemText(hwnd, WALK_PATH, CCHMAXPATH, szBuff);
    1238       bstrip(szBuff);
    1239       while ((p = strchr(szBuff, '/')) != NULL)
    1240         *p = '\\';
    1241       if (*szBuff && !IsFile(szBuff)) {
    1242         MakeFullName(szBuff);
    1243         sSelect = (SHORT) WinSendDlgItemMsg(hwnd,
    1244                                             WALK_USERLIST,
    1245                                             LM_SEARCHSTRING,
    1246                                             MPFROM2SHORT(0, LIT_FIRST),
    1247                                             MPFROMP(szBuff));
    1248         if (sSelect >= 0) {
    1249           WinSendDlgItemMsg(hwnd,
    1250                             WALK_USERLIST,
    1251                             LM_DELETEITEM, MPFROM2SHORT(sSelect, 0), MPVOID);
    1252           remove_udir(szBuff);
    1253           wa->changed = 1;
    1254         }
     1241      // 07 Oct 09 SHL Delete current selection, like docs says
     1242      sSelect = (SHORT)WinSendDlgItemMsg(hwnd,
     1243                                         WALK_USERLIST,
     1244                                         LM_QUERYSELECTION,
     1245                                         MPFROMSHORT(LIT_FIRST), MPVOID);
     1246      if (sSelect >= 0) {
     1247        WinSendDlgItemMsg(hwnd,
     1248                          WALK_USERLIST,
     1249                          LM_DELETEITEM, MPFROM2SHORT(sSelect, 0), MPVOID);
     1250        remove_udir(szBuff);
     1251        wa->changed = 1;
    12551252      }
    12561253      break;
     
    12701267        SWP swp;
    12711268        ULONG size = sizeof(SWP);
    1272 
    12731269        WinQueryWindowPos(hwnd, &swp);
    12741270        PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp,
Note: See TracChangeset for help on using the changeset viewer.