Changeset 1471 for trunk/dll/walkem.c
- Timestamp:
- Oct 14, 2009, 1:43:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/walkem.c
r1438 r1471 35 35 24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file 36 36 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 37 38 38 39 ***********************************************************************/ … … 1069 1070 APIRET rc; 1070 1071 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; 1071 1076 DosError(FERR_DISABLEHARDERR); 1072 1077 hDir = HDIR_CREATE; … … 1234 1239 1235 1240 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; 1255 1252 } 1256 1253 break; … … 1270 1267 SWP swp; 1271 1268 ULONG size = sizeof(SWP); 1272 1273 1269 WinQueryWindowPos(hwnd, &swp); 1274 1270 PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp,
Note:
See TracChangeset
for help on using the changeset viewer.