Changeset 997
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r989 r997 1344 1344 PrfQueryProfileData(fmprof, FM3Str, "FM2Deletes", &fFM2Deletes, &size); 1345 1345 1346 size = sizeof(BOOL); 1347 PrfQueryProfileData(fmprof, appname, "DetailsLWDate", &detailslwdate, &size); 1348 size = sizeof(BOOL); 1349 PrfQueryProfileData(fmprof, appname, "DetailsLWTime", &detailslwtime, &size); 1350 size = sizeof(BOOL); 1351 PrfQueryProfileData(fmprof, appname, "DetailsLADate", &detailsladate, &size); 1352 size = sizeof(BOOL); 1353 PrfQueryProfileData(fmprof, appname, "DetailsLATime", &detailslatime, &size); 1354 size = sizeof(BOOL); 1355 PrfQueryProfileData(fmprof, appname, "DetailsCRDate", &detailscrdate, &size); 1356 size = sizeof(BOOL); 1357 PrfQueryProfileData(fmprof, appname, "DetailsCRTime", &detailscrtime, &size); 1358 size = sizeof(BOOL); 1359 PrfQueryProfileData(fmprof, appname, "DetailsLongname", &detailslongname, &size); 1360 size = sizeof(BOOL); 1361 PrfQueryProfileData(fmprof, appname, "DetailsEA", &detailsea, &size); 1362 size = sizeof(BOOL); 1363 PrfQueryProfileData(fmprof, appname, "DetailsSize", &detailssize, &size); 1364 size = sizeof(BOOL); 1365 PrfQueryProfileData(fmprof, appname, "DetailsSubject", &detailssubject, &size); 1366 size = sizeof(BOOL); 1367 PrfQueryProfileData(fmprof, appname, "DetailsAttr", &detailsattr, &size); 1368 size = sizeof(BOOL); 1369 PrfQueryProfileData(fmprof, appname, "DetailsIcon", &detailsicon, &size); 1370 size = sizeof(BOOL); 1371 PrfQueryProfileData(fmprof, appname, "SubjectInLeftPane", &fSubjectInLeftPane, 1372 &size); 1373 size = sizeof(BOOL); 1374 PrfQueryProfileData(fmprof, appname, "SubjectLengthMax", &fSubjectLengthMax, 1375 &size); 1376 if (fSubjectLengthMax) 1377 SubjectDisplayWidth = 0; 1378 else { 1379 PrfQueryProfileData(fmprof, appname, "SubjectDisplayWidth", 1380 &SubjectDisplayWidth, &size); 1381 if (SubjectDisplayWidth < 50) 1382 SubjectDisplayWidth = 0; 1383 else if (SubjectDisplayWidth > 1000) 1384 SubjectDisplayWidth = 1000; 1385 } 1346 LoadDetailsSwitches("DirCnr", NULL); 1347 // size = sizeof(BOOL); 1348 // PrfQueryProfileData(fmprof, appname, "DetailsLWDate", &detailslwdate, &size); 1349 // size = sizeof(BOOL); 1350 // PrfQueryProfileData(fmprof, appname, "DetailsLWTime", &detailslwtime, &size); 1351 // size = sizeof(BOOL); 1352 // PrfQueryProfileData(fmprof, appname, "DetailsLADate", &detailsladate, &size); 1353 // size = sizeof(BOOL); 1354 // PrfQueryProfileData(fmprof, appname, "DetailsLATime", &detailslatime, &size); 1355 // size = sizeof(BOOL); 1356 // PrfQueryProfileData(fmprof, appname, "DetailsCRDate", &detailscrdate, &size); 1357 // size = sizeof(BOOL); 1358 // PrfQueryProfileData(fmprof, appname, "DetailsCRTime", &detailscrtime, &size); 1359 // size = sizeof(BOOL); 1360 // PrfQueryProfileData(fmprof, appname, "DetailsLongname", &detailslongname, &size); 1361 // size = sizeof(BOOL); 1362 // PrfQueryProfileData(fmprof, appname, "DetailsEA", &detailsea, &size); 1363 // size = sizeof(BOOL); 1364 // PrfQueryProfileData(fmprof, appname, "DetailsSize", &detailssize, &size); 1365 // size = sizeof(BOOL); 1366 // PrfQueryProfileData(fmprof, appname, "DetailsSubject", &detailssubject, &size); 1367 // size = sizeof(BOOL); 1368 // PrfQueryProfileData(fmprof, appname, "DetailsAttr", &detailsattr, &size); 1369 // size = sizeof(BOOL); 1370 // PrfQueryProfileData(fmprof, appname, "DetailsIcon", &detailsicon, &size); 1371 // size = sizeof(BOOL); 1372 // PrfQueryProfileData(fmprof, appname, "SubjectInLeftPane", &fSubjectInLeftPane, 1373 // &size); 1374 // size = sizeof(BOOL); 1375 // PrfQueryProfileData(fmprof, appname, "SubjectLengthMax", &fSubjectLengthMax, 1376 // &size); 1377 // if (fSubjectLengthMax) 1378 // SubjectDisplayWidth = 0; 1379 // else { 1380 // PrfQueryProfileData(fmprof, appname, "SubjectDisplayWidth", 1381 // &SubjectDisplayWidth, &size); 1382 // if (SubjectDisplayWidth < 50) 1383 // SubjectDisplayWidth = 0; 1384 // else if (SubjectDisplayWidth > 1000) 1385 // SubjectDisplayWidth = 1000; 1386 // } 1386 1387 1387 1388 /* load pointers and icons we use */ -
trunk/dll/misc.c
r989 r997 1036 1036 DIRCNRDATA * dcd, BOOL compare) 1037 1037 { 1038 // JBS CHAR s[CCHMAXPATH], *eos = s;1039 1038 BOOL *bool = NULL; 1040 1039 1041 // JBS *s = 0;1042 // JBS if (keyroot) {1043 // JBS strcpy(s, keyroot);1044 // JBS strcat(s, ".");1045 // JBS eos = &s[strlen(s)];1046 // JBS }1047 1040 switch (cmd) { 1048 1041 case IDM_SHOWLNAMES: 1049 1042 bool = dcd ? &dcd->detailslongname : &detailslongname; 1050 // JBS strcpy(eos, "DetailsLongname");1051 1043 break; 1052 1044 case IDM_SHOWSUBJECT: 1053 1045 bool = dcd ? &dcd->detailssubject : &detailssubject; 1054 // JBS strcpy(eos, "DetailsSubject");1055 1046 break; 1056 1047 case IDM_SHOWEAS: 1057 1048 bool = dcd ? &dcd->detailsea : &detailsea; 1058 // JBS strcpy(eos, "DetailsEA");1059 1049 break; 1060 1050 case IDM_SHOWSIZE: 1061 1051 bool = dcd ? &dcd->detailssize : &detailssize; 1062 // JBS strcpy(eos, "DetailsSize");1063 1052 break; 1064 1053 case IDM_SHOWICON: 1065 1054 bool = dcd ? &dcd->detailsicon : &detailsicon; 1066 // JBS strcpy(eos, "DetailsIcon");1067 1055 break; 1068 1056 case IDM_SHOWLWDATE: 1069 1057 bool = dcd ? &dcd->detailslwdate : &detailslwdate; 1070 // JBS strcpy(eos, "DetailsLWDate");1071 1058 break; 1072 1059 case IDM_SHOWLWTIME: 1073 1060 bool = dcd ? &dcd->detailslwtime : &detailslwtime; 1074 // JBS strcpy(eos, "DetailsLWTime");1075 1061 break; 1076 1062 case IDM_SHOWLADATE: 1077 1063 bool = dcd ? &dcd->detailsladate : &detailsladate; 1078 // JBS strcpy(eos, "DetailsLADate");1079 1064 break; 1080 1065 case IDM_SHOWLATIME: 1081 1066 bool = dcd ? &dcd->detailslatime : &detailslatime; 1082 // JBS strcpy(eos, "DetailsLATime");1083 1067 break; 1084 1068 case IDM_SHOWCRDATE: 1085 1069 bool = dcd ? &dcd->detailscrdate : &detailscrdate; 1086 // JBS strcpy(eos, "DetailsCRDate");1087 1070 break; 1088 1071 case IDM_SHOWCRTIME: 1089 1072 bool = dcd ? &dcd->detailscrtime : &detailscrtime; 1090 // JBS strcpy(eos, "DetailsCRTime");1091 1073 break; 1092 1074 case IDM_SHOWATTR: 1093 1075 bool = dcd ? &dcd->detailsattr : &detailsattr; 1094 // JBS strcpy(eos, "DetailsAttr");1095 1076 break; 1096 1077 default: … … 1101 1082 if (bool) 1102 1083 *bool = *bool ? FALSE : TRUE; 1103 // JBS if (*s && bool)1104 // JBS PrfWriteProfileData(fmprof, appname, s, bool, sizeof(BOOL));1105 1084 if (hwnd) 1106 1085 AdjustCnrColsForPref(hwnd, directory, dcd, compare); … … 1249 1228 BOOL *bool; 1250 1229 1251 // JBS - No calls to LoadDetailsSwitches have a NULL keyroot. 1252 // *s = 0; 1253 // if (keyroot) { 1254 strcpy(s, keyroot); 1255 strcat(s, "."); 1256 eos = &s[strlen(s)]; 1257 // } 1230 strcpy(s, keyroot); 1231 strcat(s, "."); 1232 eos = &s[strlen(s)]; 1258 1233 strcpy(eos, "DetailsLongname"); 1259 1234 if (dcd) -
trunk/dll/notebook.c
r985 r997 1812 1812 } 1813 1813 detailslongname = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLNAMES); 1814 PrfWriteProfileData(fmprof, appname, "D etailsLongname",1814 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname", 1815 1815 &detailslongname, sizeof(BOOL)); 1816 1816 detailssubject = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSUBJECT); 1817 PrfWriteProfileData(fmprof, appname, "D etailsSubject",1817 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject", 1818 1818 &detailssubject, sizeof(BOOL)); 1819 PrfWriteProfileData(fmprof, appname, "D etailsEA",1819 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA", 1820 1820 &detailsea, sizeof(BOOL)); 1821 1821 detailssize = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSIZE); 1822 PrfWriteProfileData(fmprof, appname, "D etailsSize",1822 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize", 1823 1823 &detailssize, sizeof(BOOL)); 1824 1824 detailsicon = WinQueryButtonCheckstate(hwnd, CFG5_SHOWICON); 1825 PrfWriteProfileData(fmprof, appname, "D etailsIcon",1825 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon", 1826 1826 &detailsicon, sizeof(BOOL)); 1827 1827 detailslwdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWDATE); 1828 PrfWriteProfileData(fmprof, appname, "D etailsLWDate",1828 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate", 1829 1829 &detailslwdate, sizeof(BOOL)); 1830 1830 detailslwtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWTIME); 1831 PrfWriteProfileData(fmprof, appname, "D etailsLWTime",1831 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime", 1832 1832 &detailslwtime, sizeof(BOOL)); 1833 1833 detailsladate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLADATE); 1834 PrfWriteProfileData(fmprof, appname, "D etailsLADate",1834 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate", 1835 1835 &detailsladate, sizeof(BOOL)); 1836 1836 detailslatime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLATIME); 1837 PrfWriteProfileData(fmprof, appname, "D etailsLATime",1837 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime", 1838 1838 &detailslatime, sizeof(BOOL)); 1839 1839 detailscrdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRDATE); 1840 PrfWriteProfileData(fmprof, appname, "D etailsCRDate",1840 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate", 1841 1841 &detailscrdate, sizeof(BOOL)); 1842 1842 detailscrtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRTIME); 1843 PrfWriteProfileData(fmprof, appname, "D etailsCRTime",1843 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime", 1844 1844 &detailscrtime, sizeof(BOOL)); 1845 1845 detailsattr = WinQueryButtonCheckstate(hwnd, CFG5_SHOWATTR); 1846 PrfWriteProfileData(fmprof, appname, "D etailsAttr",1846 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr", 1847 1847 &detailsattr, sizeof(BOOL)); 1848 1848 fSubjectInLeftPane = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTINLEFTPANE); 1849 PrfWriteProfileData(fmprof, appname, " SubjectInLeftPane",1849 PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectInLeftPane", 1850 1850 &fSubjectInLeftPane, sizeof(BOOL)); 1851 1851 fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX); 1852 PrfWriteProfileData(fmprof, appname, " SubjectLengthMax",1852 PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectLengthMax", 1853 1853 &fSubjectLengthMax, sizeof(BOOL)); 1854 1854 *mask.prompt = 0; … … 1866 1866 SubjectDisplayWidth = 0; 1867 1867 PrfWriteProfileData(fmprof, 1868 appname, " SubjectDisplayWidth",1868 appname, "DirCnr.SubjectDisplayWidth", 1869 1869 &SubjectDisplayWidth, sizeof(ULONG)); 1870 1870 } … … 2956 2956 } 2957 2957 // Save new details settings and refresh windows 2958 PrfWriteProfileData(fmprof, appname, "D etailsLongname",2958 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname", 2959 2959 &detailslongname, sizeof(BOOL)); 2960 PrfWriteProfileData(fmprof, appname, "D etailsSubject",2960 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject", 2961 2961 &detailssubject, sizeof(BOOL)); 2962 PrfWriteProfileData(fmprof, appname, "D etailsEA",2962 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA", 2963 2963 &detailsea, sizeof(BOOL)); 2964 PrfWriteProfileData(fmprof, appname, "D etailsSize",2964 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize", 2965 2965 &detailssize, sizeof(BOOL)); 2966 PrfWriteProfileData(fmprof, appname, "D etailsIcon",2966 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon", 2967 2967 &detailsicon, sizeof(BOOL)); 2968 PrfWriteProfileData(fmprof, appname, "D etailsLWDate",2968 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate", 2969 2969 &detailslwdate, sizeof(BOOL)); 2970 PrfWriteProfileData(fmprof, appname, "D etailsLWTime",2970 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime", 2971 2971 &detailslwtime, sizeof(BOOL)); 2972 PrfWriteProfileData(fmprof, appname, "D etailsLADate",2972 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate", 2973 2973 &detailsladate, sizeof(BOOL)); 2974 PrfWriteProfileData(fmprof, appname, "D etailsLATime",2974 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime", 2975 2975 &detailslatime, sizeof(BOOL)); 2976 PrfWriteProfileData(fmprof, appname, "D etailsCRDate",2976 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate", 2977 2977 &detailscrdate, sizeof(BOOL)); 2978 PrfWriteProfileData(fmprof, appname, "D etailsCRTime",2978 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime", 2979 2979 &detailscrtime, sizeof(BOOL)); 2980 PrfWriteProfileData(fmprof, appname, "D etailsAttr",2980 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr", 2981 2981 &detailsattr, sizeof(BOOL)); 2982 2982 if (hwndMain) { … … 2986 2986 PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2)); 2987 2987 // Restore saved state 2988 // PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);2989 2988 PostMsg(MainObjectHwnd, UM_RESTORE, GetPString(IDS_FM2TEMPTEXT), MPVOID); 2990 2989 }
Note:
See TracChangeset
for help on using the changeset viewer.