Changeset 1065 for trunk/dll/comp.c
- Timestamp:
- Jul 11, 2008, 6:50:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r1063 r1065 54 54 29 Feb 08 GKY Refactor global command line variables to notebook.h 55 55 16 Mar 08 GKY Prevent trap caused by files that exceed maxpath length 56 11 Jul 08 JBS Ticket 230: Simplified code and eliminated some local variables by incorporating 57 all the details view settings (both the global variables and those in the 58 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 56 59 57 60 ***********************************************************************/ … … 2263 2266 cmp->dcd.mask.attrFile = (FILE_DIRECTORY | FILE_ARCHIVED | 2264 2267 FILE_READONLY | FILE_SYSTEM | FILE_HIDDEN); 2265 LoadDetailsSwitches("DirCmp", &cmp->dcd );2266 cmp->dcd.d etailslongname = FALSE;2267 cmp->dcd.d etailsicon = FALSE; // TRUE;2268 LoadDetailsSwitches("DirCmp", &cmp->dcd.ds); 2269 cmp->dcd.ds.detailslongname = FALSE; 2270 cmp->dcd.ds.detailsicon = FALSE; // TRUE; 2268 2271 } 2269 2272 memset(&cnri, 0, sizeof(CNRINFO)); … … 2287 2290 AdjustCnrColRO(hwndRight, GetPString(IDS_FILENAMECOLTEXT), TRUE, FALSE); 2288 2291 AdjustCnrColRO(hwndRight, GetPString(IDS_LONGNAMECOLTEXT), TRUE, FALSE); 2289 AdjustCnrColsForPref(hwndLeft, cmp->leftdir, &cmp->dcd , TRUE);2290 tempsubj = cmp->dcd.d etailssubject;2291 cmp->dcd.d etailssubject = FALSE;2292 AdjustCnrColsForPref(hwndRight, cmp->rightdir, &cmp->dcd , TRUE);2292 AdjustCnrColsForPref(hwndLeft, cmp->leftdir, &cmp->dcd.ds, TRUE); 2293 tempsubj = cmp->dcd.ds.detailssubject; 2294 cmp->dcd.ds.detailssubject = FALSE; 2295 AdjustCnrColsForPref(hwndRight, cmp->rightdir, &cmp->dcd.ds, TRUE); 2293 2296 if (*cmp->rightlist) { 2294 2297 AdjustCnrColVis(hwndRight, GetPString(IDS_LADATECOLTEXT), FALSE, … … 2301 2304 FALSE); 2302 2305 } 2303 cmp->dcd.d etailssubject = tempsubj;2306 cmp->dcd.ds.detailssubject = tempsubj; 2304 2307 } 2305 2308 return 0; … … 2530 2533 WinSendMsg(cmp->dcd.hwndLastMenu, MM_DELETEITEM, 2531 2534 MPFROM2SHORT(IDM_SHOWSUBJECT, FALSE), MPVOID); 2532 SetDetailsSwitches(cmp->dcd.hwndLastMenu, &cmp->dcd );2535 SetDetailsSwitches(cmp->dcd.hwndLastMenu, &cmp->dcd.ds); 2533 2536 if (SHORT1FROMMP(mp1) == COMP_LEFTDIR) 2534 2537 WinSendMsg(cmp->dcd.hwndLastMenu, MM_DELETEITEM, … … 2902 2905 AdjustDetailsSwitches(hwndLeft, 2903 2906 (HWND)0, SHORT1FROMMP(mp1), 2904 cmp->leftdir, "DirCmp", &cmp->dcd , TRUE);2905 tempsubj = cmp->dcd.d etailssubject;2907 cmp->leftdir, "DirCmp", &cmp->dcd.ds, TRUE); 2908 tempsubj = cmp->dcd.ds.detailssubject; 2906 2909 cmp->dcd = dcd1; 2907 cmp->dcd.d etailssubject = FALSE;2910 cmp->dcd.ds.detailssubject = FALSE; 2908 2911 AdjustDetailsSwitches(hwndRight, 2909 2912 cmp->dcd.hwndLastMenu, SHORT1FROMMP(mp1), 2910 cmp->rightdir, "DirCmp", &cmp->dcd , TRUE);2911 cmp->dcd.d etailssubject = tempsubj;2913 cmp->rightdir, "DirCmp", &cmp->dcd.ds, TRUE); 2914 cmp->dcd.ds.detailssubject = tempsubj; 2912 2915 } 2913 2916 break;
Note:
See TracChangeset
for help on using the changeset viewer.