Changeset 1065
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r1063 r1065 49 49 29 Feb 08 GKY Use xfree where appropriate 50 50 06 Jul 08 GKY Update delete/undelete to include move to and open XWP trashcan 51 11 Jul 08 JBS Ticket 230: Simplified code and eliminated some local variables by incorporating 52 all the details view settings (both the global variables and those in the 53 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 51 54 52 55 ***********************************************************************/ … … 139 142 if (dcd) { 140 143 SetViewMenu(hwndButtonPopup, dcd->flWindowAttr); 141 SetDetailsSwitches(hwndButtonPopup, dcd);144 SetDetailsSwitches(hwndButtonPopup, &dcd->ds); 142 145 CopyPresParams(hwndButtonPopup, hwnd); 143 146 } … … 223 226 COLLECTOR_CNR), QWL_USER); 224 227 if (dcd) 225 SetDetailsSwitches(hwndButtonPopup, dcd);228 SetDetailsSwitches(hwndButtonPopup, &dcd->ds); 226 229 } 227 230 return mr; … … 1317 1320 1318 1321 RestorePresParams(hwnd, "Collector"); 1319 LoadDetailsSwitches("Collector", dcd);1322 LoadDetailsSwitches("Collector", &dcd->ds); 1320 1323 1321 1324 dcd->amextracted = FALSE; // Say not busy … … 1359 1362 CMA_CXTREEINDENT | CMA_PSORTRECORD)); 1360 1363 SetCnrCols(hwnd, FALSE); 1361 AdjustCnrColsForPref(hwnd, NULL, dcd, FALSE);1364 AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE); 1362 1365 1363 1366 /* fix splitbar for collector container */ … … 1448 1451 1449 1452 case IDM_DETAILSSETUP: 1450 SetDetailsSwitches((HWND) mp2, dcd);1453 SetDetailsSwitches((HWND) mp2, &dcd->ds); 1451 1454 break; 1452 1455 … … 1952 1955 AdjustDetailsSwitches(hwnd, dcd->hwndLastMenu, 1953 1956 SHORT1FROMMP(mp1), NULL, 1954 "Collector", dcd, FALSE);1957 "Collector", &dcd->ds, FALSE); 1955 1958 break; 1956 1959 … … 2213 2216 if (dcd->hwndLastMenu == CollectorCnrMenu) { 2214 2217 SetViewMenu(dcd->hwndLastMenu, dcd->flWindowAttr); 2215 SetDetailsSwitches(dcd->hwndLastMenu, dcd);2218 SetDetailsSwitches(dcd->hwndLastMenu, &dcd->ds); 2216 2219 CopyPresParams(dcd->hwndLastMenu, hwnd); 2217 2220 if (dcd->flWindowAttr & CV_MINI) -
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; -
trunk/dll/dircnrs.c
r1063 r1065 41 41 22 Jun 08 GKY Included free_... functions for fortify checking 42 42 06 Jul 08 GKY Update delete/undelete to include move to and open XWP trashcan 43 11 Jul 08 JBS Ticket 230: Simplified code and eliminated some local variables by incorporating 44 all the details view settings (both the global variables and those in the 45 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 43 46 44 47 ***********************************************************************/ … … 105 108 DIR_CNR), QWL_USER); 106 109 if (dcd) 107 SetDetailsSwitches(hwndButtonPopup, dcd);110 SetDetailsSwitches(hwndButtonPopup, &dcd->ds); 108 111 } 109 112 return mr; … … 168 171 if (dcd) { 169 172 SetViewMenu(hwndButtonPopup, dcd->flWindowAttr); 170 SetDetailsSwitches(hwndButtonPopup, dcd);173 SetDetailsSwitches(hwndButtonPopup, &dcd->ds); 171 174 } 172 175 } … … 755 758 } 756 759 RemoveCnrItems(dcd->hwndCnr, NULL, 0, CMA_FREE | CMA_INVALIDATE | CMA_ERASE); 757 AdjustCnrColsForFSType(dcd->hwndCnr, dcd->directory, dcd);760 AdjustCnrColsForFSType(dcd->hwndCnr, dcd->directory, &dcd->ds); 758 761 dcd->ullTotalBytes = dcd->totalfiles = 759 762 dcd->selectedfiles = dcd->selectedbytes = 0; … … 1526 1529 case UM_SETUP2: 1527 1530 if (dcd) { 1528 AdjustCnrColsForPref(hwnd, NULL, dcd, FALSE);1531 AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE); 1529 1532 SayFilter(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), 1530 1533 DIR_FILTER), &dcd->mask, FALSE); … … 1635 1638 1636 1639 case IDM_DETAILSSETUP: 1637 SetDetailsSwitches((HWND) mp2, dcd);1640 SetDetailsSwitches((HWND) mp2, &dcd->ds); 1638 1641 break; 1639 1642 … … 2205 2208 dcd->hwndLastMenu, 2206 2209 SHORT1FROMMP(mp1), 2207 dcd->directory, NULL, dcd, FALSE);2210 dcd->directory, NULL, &dcd->ds, FALSE); 2208 2211 break; 2209 2212 … … 3482 3485 dcd->hwndRestore = hwndRestore; 3483 3486 dcd->dontclose = ((flags & 1) != 0); 3484 dcd->d etailslongname =detailslongname;3485 dcd->d etailssubject =detailssubject;3486 dcd->d etailsea =detailsea;3487 dcd->d etailssize =detailssize;3488 dcd->d etailsicon =detailsicon;3489 dcd->d etailsattr =detailsattr;3490 dcd->d etailscrdate =detailscrdate;3491 dcd->d etailscrtime =detailscrtime;3492 dcd->d etailslwdate =detailslwdate;3493 dcd->d etailslwtime =detailslwtime;3494 dcd->d etailsladate =detailsladate;3495 dcd->d etailslatime =detailslatime;3487 dcd->ds.detailslongname = dsDirCnrDefault.detailslongname; 3488 dcd->ds.detailssubject = dsDirCnrDefault.detailssubject; 3489 dcd->ds.detailsea = dsDirCnrDefault.detailsea; 3490 dcd->ds.detailssize = dsDirCnrDefault.detailssize; 3491 dcd->ds.detailsicon = dsDirCnrDefault.detailsicon; 3492 dcd->ds.detailsattr = dsDirCnrDefault.detailsattr; 3493 dcd->ds.detailscrdate = dsDirCnrDefault.detailscrdate; 3494 dcd->ds.detailscrtime = dsDirCnrDefault.detailscrtime; 3495 dcd->ds.detailslwdate = dsDirCnrDefault.detailslwdate; 3496 dcd->ds.detailslwtime = dsDirCnrDefault.detailslwtime; 3497 dcd->ds.detailsladate = dsDirCnrDefault.detailsladate; 3498 dcd->ds.detailslatime = dsDirCnrDefault.detailslatime; 3496 3499 strcpy(dcd->directory, directory); 3497 3500 add_udir(FALSE, directory); -
trunk/dll/dircnrs.h
r940 r1065 11 11 05 Jan 08 SHL Move dircnrs.c definitions here 12 12 13 Jan 08 GKY Add variables to DIRCNRDATA struct for Subjectwidth/Subjectleft. 13 11 Jul 08 JBS Ticket 230: Simplified code and eliminated some local variables by incorporating 14 all the details view settings (both the global variables and those in the 15 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 13 16 14 17 ***********************************************************************/ … … 86 89 MASK; 87 90 91 typedef struct DETAILS_SETTINGS 92 { 93 BOOL detailsladate, detailslatime, detailscrdate, detailscrtime, 94 detailslongname, detailsea, detailssize, detailssubject, 95 detailslwdate, detailslwtime, detailsattr, detailsicon, 96 fSubjectInLeftPane, fSubjectLengthMax; 97 ULONG SubjectDisplayWidth; 98 } 99 DETAILS_SETTINGS; 100 88 101 typedef struct DIRCNRDATA 89 102 { … … 124 137 INT lasthelp; 125 138 INT sortFlags; 126 BOOL detailsladate, detailslatime, detailscrdate, detailscrtime, 127 detailslongname, detailsea, detailssize, detailssubject, 128 detailslwdate, detailslwtime, detailsattr, detailsicon, 129 fSubjectInLeftPane, fSubjectLengthMax, SubjectDisplayWidth; 139 DETAILS_SETTINGS ds; 130 140 CHAR **lastselection; 131 141 USHORT shiftstate; -
trunk/dll/fm3dll.h
r1043 r1065 80 80 29 Feb 08 GKY Refactor global command line variables to notebook.h 81 81 22 Jun 08 GKY Changed some variable types to fix compiler warnings 82 11 Jul 08 JBS Ticket 230: Simplified code and eliminated some local variables by incorporating 83 all the details view settings (both the global variables and those in the 84 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 82 85 83 86 ***********************************************************************/ … … 501 504 BOOL AdjustCnrColVis(HWND hwndCnr, CHAR * title, BOOL visible, BOOL toggle); 502 505 BOOL AdjustCnrColRO(HWND hwndCnr, CHAR * title, BOOL readonly, BOOL toggle); 503 VOID AdjustCnrColsForFSType(HWND hwndCnr, CHAR * directory, D IRCNRDATA * dcd);504 VOID AdjustCnrColsForPref(HWND hwndCnr, CHAR * directory, D IRCNRDATA * dcd,506 VOID AdjustCnrColsForFSType(HWND hwndCnr, CHAR * directory, DETAILS_SETTINGS * pds); 507 VOID AdjustCnrColsForPref(HWND hwndCnr, CHAR * directory, DETAILS_SETTINGS * pds, 505 508 BOOL compare); 506 509 BOOL SetCnrCols(HWND hwndCnr, BOOL compare); … … 512 515 VOID CloseHelp(VOID); 513 516 INT ExecFile(HWND hwnd, CHAR * filename); 514 VOID SetDetailsSwitches(HWND hwnd, D IRCNRDATA * dcd);517 VOID SetDetailsSwitches(HWND hwnd, DETAILS_SETTINGS * pds); 515 518 VOID AdjustDetailsSwitches(HWND hwnd, HWND hwndMenu, USHORT cmd, 516 CHAR * directory, CHAR * keyroot, D IRCNRDATA * dcd,519 CHAR * directory, CHAR * keyroot, DETAILS_SETTINGS * pds, 517 520 BOOL compare); 518 521 VOID SetConditionalCascade(HWND hwndMenu, USHORT id, USHORT def); 519 522 VOID SetSortChecks(HWND hwndMenu, INT sortflags); 520 523 VOID SetupCommandMenu(HWND hwndMenu, HWND hwndCnr); 521 VOID LoadDetailsSwitches(CHAR * keyroot, D IRCNRDATA * dcd);524 VOID LoadDetailsSwitches(CHAR * keyroot, DETAILS_SETTINGS * pds); 522 525 HWND FindDirCnr(HWND hwndParent); 523 526 VOID HeapThread(VOID * dummy); … … 1136 1139 fSwitchTreeExpand, fCollapseFirst, fFilesInTree, fNoDead, 1137 1140 fThreadNotes, fOkayMinimize, fRunning, fDullMin, fBlueLED, 1138 fViewChild, fShowEnv, fLeaveTree, fNoFoldMenu, fSubjectInLeftPane,1141 fViewChild, fShowEnv, fLeaveTree, fNoFoldMenu, 1139 1142 fCustomFileDlg, fSaveMiniCmds, fSaveBigCmds, fNoTileUpdate, 1140 1143 fFM2Deletes, fAutoAddAllDirs, fConfirmTarget, fChangeTarget, 1141 1144 fFirstTime, fShowTarget, fNoFinger, fDrivebarHelp, fCheckMM, 1142 f SubjectLengthMax, fNoLargeFileSupport, fNoMailtoMailRun,1145 fNoLargeFileSupport, fNoMailtoMailRun, 1143 1146 fHttpRunWPSDefault, fFtpRunWPSDefault, fLibPathStrictMailRun, 1144 1147 fLibPathStrictHttpRun, fLibPathStrictFtpRun, fCancelAction, fTrashCan; 1145 DATADEF BOOL detailsladate, detailslatime, detailscrdate, detailscrtime, 1146 detailslongname, detailsea, detailssize, detailssubject, 1147 detailslwdate, detailslwtime, detailsattr, detailsicon; 1148 DATADEF DETAILS_SETTINGS dsDirCnrDefault; 1148 1149 DATADEF PID mypid; 1149 1150 DATADEF INT driveflags[26], driveserial[26]; … … 1183 1184 #define FILESTOGET_MAX 4096 1184 1185 1185 DATADEF ULONG ulCnrType, FilesToGet, AutoviewHeight, TreeWidth, FM3UL , SubjectDisplayWidth;1186 DATADEF ULONG ulCnrType, FilesToGet, AutoviewHeight, TreeWidth, FM3UL; 1186 1187 DATADEF long prnwidth, prnlength, prntmargin, prnbmargin, prnlmargin, 1187 1188 prnrmargin, prnspacing, prntabspaces; -
trunk/dll/init.c
r1063 r1065 46 46 keys using a "DirCnr." prefix 47 47 20 Apr 08 GKY Change default cmd line length to 1024 Ask once if user wants to reset it. 48 11 Jul 08 JBS Ticket 230: Simplified code and eliminated some local variables by incorporating 49 all the details view settings (both the global variables and those in the 50 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 48 51 49 52 ***********************************************************************/ … … 958 961 * to 0) 959 962 */ 960 detailssize = detailsea = detailslwdate = detailslwtime = detailsattr = 961 detailsicon = fAutoTile = fConfirmDelete = fLoadSubject = fUnHilite = 963 dsDirCnrDefault.detailssize = dsDirCnrDefault.detailsea = dsDirCnrDefault.detailslwdate = 964 dsDirCnrDefault.detailslwtime = dsDirCnrDefault.detailsattr = dsDirCnrDefault.detailsicon = 965 fAutoTile = fConfirmDelete = fLoadSubject = fUnHilite = 962 966 fLoadLongnames = fToolbar = fSaveState = fGuessType = fToolbarHelp = 963 967 fAutoAddDirs = fUseNewViewer = fDataToFore = fDataShowDrives = … … 1365 1369 PrfQueryProfileData(fmprof, FM3Str, "TrashCan", &fTrashCan, &size); 1366 1370 1367 LoadDetailsSwitches("DirCnr", NULL);1371 LoadDetailsSwitches("DirCnr", &dsDirCnrDefault); 1368 1372 1369 1373 /* load pointers and icons we use */ -
trunk/dll/mainwnd.c
r1063 r1065 59 59 30 Jun 08 JBS Ticket 103: Fix restore of previous shutdown state when opening FM/2 60 60 07 Jul 08 JBS Ticket 242: Delete obsolete INI keys when re-saving a state 61 11 Jul 08 JBS Ticket 230: Simplified code and eliminated some local variables by incorporating 62 all the details view settings (both the global variables and those in the 63 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 61 64 62 65 ***********************************************************************/ … … 2863 2866 sizeof(ULONG)); 2864 2867 sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, numsaves); 2865 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailslongname,2868 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslongname, 2866 2869 sizeof(BOOL)); 2867 2870 sprintf(szKey, "%sDirCnr.%lu.DetailsSubject", szPrefix, numsaves); 2868 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailssubject,2871 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailssubject, 2869 2872 sizeof(BOOL)); 2870 2873 sprintf(szKey, "%sDirCnr.%lu.DetailsSize", szPrefix, numsaves); 2871 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailssize,2874 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailssize, 2872 2875 sizeof(BOOL)); 2873 2876 sprintf(szKey, "%sDirCnr.%lu.DetailsEA", szPrefix, numsaves); 2874 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailsea,2877 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsea, 2875 2878 sizeof(BOOL)); 2876 2879 sprintf(szKey, "%sDirCnr.%lu.DetailsAttr", szPrefix, numsaves); 2877 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailsattr,2880 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsattr, 2878 2881 sizeof(BOOL)); 2879 2882 sprintf(szKey, "%sDirCnr.%lu.DetailsIcon", szPrefix, numsaves); 2880 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailsicon,2883 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsicon, 2881 2884 sizeof(BOOL)); 2882 2885 sprintf(szKey, "%sDirCnr.%lu.DetailsLWDate", szPrefix, numsaves); 2883 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailslwdate,2886 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslwdate, 2884 2887 sizeof(BOOL)); 2885 2888 sprintf(szKey, "%sDirCnr.%lu.DetailsLWTime", szPrefix, numsaves); 2886 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailslwtime,2889 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslwtime, 2887 2890 sizeof(BOOL)); 2888 2891 sprintf(szKey, "%sDirCnr.%lu.DetailsLADate", szPrefix, numsaves); 2889 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailsladate,2892 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsladate, 2890 2893 sizeof(BOOL)); 2891 2894 sprintf(szKey, "%sDirCnr.%lu.DetailsLATime", szPrefix, numsaves); 2892 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailslatime,2895 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslatime, 2893 2896 sizeof(BOOL)); 2894 2897 sprintf(szKey, "%sDirCnr.%lu.DetailsCRDate", szPrefix, numsaves); 2895 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailscrdate,2898 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailscrdate, 2896 2899 sizeof(BOOL)); 2897 2900 sprintf(szKey, "%sDirCnr.%lu.DetailsCRTime", szPrefix, numsaves); 2898 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->d etailscrtime,2901 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailscrtime, 2899 2902 sizeof(BOOL)); 2900 2903 sprintf(szKey, "%sDirCnr.%lu", szPrefix, numsaves); … … 3115 3118 if (fDeleteState) 3116 3119 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3117 localdcd.d etailslongname =detailslongname; // Set default3120 localdcd.ds.detailslongname = dsDirCnrDefault.detailslongname; // Set default 3118 3121 size = sizeof(BOOL); 3119 3122 sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, x); … … 3121 3124 FM3Str, 3122 3125 szKey, 3123 (PVOID)&localdcd.d etailslongname,3126 (PVOID)&localdcd.ds.detailslongname, 3124 3127 &size) && 3125 3128 size == sizeof(BOOL)) … … 3128 3131 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3129 3132 } 3130 localdcd.d etailssubject =detailssubject; // Set default3133 localdcd.ds.detailssubject = dsDirCnrDefault.detailssubject; // Set default 3131 3134 size = sizeof(BOOL); 3132 3135 sprintf(szKey, "%sDirCnr.%lu.DetailsSubject", szPrefix, x); … … 3134 3137 FM3Str, 3135 3138 szKey, 3136 (PVOID)&localdcd.d etailssubject,3139 (PVOID)&localdcd.ds.detailssubject, 3137 3140 &size) && 3138 3141 size == sizeof(BOOL)) … … 3141 3144 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3142 3145 } 3143 localdcd.d etailsea =detailsea; // Set default3146 localdcd.ds.detailsea = dsDirCnrDefault.detailsea; // Set default 3144 3147 size = sizeof(BOOL); 3145 3148 sprintf(szKey, "%sDirCnr.%lu.DetailsEA", szPrefix, x); … … 3147 3150 FM3Str, 3148 3151 szKey, 3149 (PVOID) & localdcd.d etailsea,3152 (PVOID) & localdcd.ds.detailsea, 3150 3153 &size) && 3151 3154 size == sizeof(BOOL)) … … 3154 3157 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3155 3158 } 3156 localdcd.d etailssize =detailssize; // Set default3159 localdcd.ds.detailssize = dsDirCnrDefault.detailssize; // Set default 3157 3160 size = sizeof(BOOL); 3158 3161 sprintf(szKey, "%sDirCnr.%lu.DetailsSize", szPrefix, x); … … 3160 3163 FM3Str, 3161 3164 szKey, 3162 (PVOID) & localdcd.d etailssize,3165 (PVOID) & localdcd.ds.detailssize, 3163 3166 &size) && 3164 3167 size == sizeof(BOOL)) … … 3167 3170 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3168 3171 } 3169 localdcd.d etailsicon =detailsicon; // Set default3172 localdcd.ds.detailsicon = dsDirCnrDefault.detailsicon; // Set default 3170 3173 size = sizeof(BOOL); 3171 3174 sprintf(szKey, "%sDirCnr.%lu.DetailsIcon", szPrefix, x); … … 3173 3176 FM3Str, 3174 3177 szKey, 3175 (PVOID) & localdcd.d etailsicon,3178 (PVOID) & localdcd.ds.detailsicon, 3176 3179 &size) && 3177 3180 size == sizeof(BOOL)) … … 3180 3183 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3181 3184 } 3182 localdcd.d etailsattr =detailsattr; // Set default3185 localdcd.ds.detailsattr = dsDirCnrDefault.detailsattr; // Set default 3183 3186 size = sizeof(BOOL); 3184 3187 sprintf(szKey, "%sDirCnr.%lu.DetailsAttr", szPrefix, x); … … 3186 3189 FM3Str, 3187 3190 szKey, 3188 (PVOID)&localdcd.d etailsattr,3191 (PVOID)&localdcd.ds.detailsattr, 3189 3192 &size) && 3190 3193 size == sizeof(BOOL)) … … 3193 3196 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3194 3197 } 3195 localdcd.d etailscrdate =detailscrdate; // Set default3198 localdcd.ds.detailscrdate = dsDirCnrDefault.detailscrdate; // Set default 3196 3199 size = sizeof(BOOL); 3197 3200 sprintf(szKey, "%sDirCnr.%lu.DetailsCRDate", szPrefix, x); … … 3199 3202 FM3Str, 3200 3203 szKey, 3201 (PVOID) & localdcd.d etailscrdate,3204 (PVOID) & localdcd.ds.detailscrdate, 3202 3205 &size) && size == sizeof(BOOL)) 3203 3206 { … … 3205 3208 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3206 3209 &
![(please configure the [header_logo] section in trac.ini)](/fm2/chrome/site/your_project_logo.png)