Changeset 922
- Timestamp:
- Jan 13, 2008, 8:50:30 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/HISTORY ¶
r921 r922 9 9 o Rework Config menu. Move some to submenu. Add drag&drop dialog toggle. (Steven) 10 10 o Rework Walk dialog. Put entry field at the top. (Steven) 11 o Get Subjectwidth/left working in the collector. (Gregg) 11 12 12 13 3.09 -
TabularUnified trunk/dll/dircnrs.h ¶
r907 r922 125 125 BOOL detailsladate, detailslatime, detailscrdate, detailscrtime, 126 126 detailslongname, detailsea, detailssize, detailssubject, 127 detailslwdate, detailslwtime, detailsattr, detailsicon; 127 detailslwdate, detailslwtime, detailsattr, detailsicon, 128 fSubjectInLeftPane, fSubjectLengthMax, SubjectDisplayWidth; 128 129 CHAR **lastselection; 129 130 USHORT shiftstate; -
TabularUnified trunk/dll/init.c ¶
r917 r922 1305 1305 PrfQueryProfileData(fmprof, appname, "SubjectInLeftPane", &fSubjectInLeftPane, 1306 1306 &size); 1307 size = sizeof(ULONG);1308 1307 size = sizeof(BOOL); 1309 1308 PrfQueryProfileData(fmprof, appname, "SubjectLengthMax", &fSubjectLengthMax, 1310 1309 &size); 1311 1310 if (fSubjectLengthMax) 1312 1311 SubjectDisplayWidth = 0; -
TabularUnified trunk/dll/misc.c ¶
r921 r922 1316 1316 size = sizeof(BOOL); 1317 1317 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1318 strcpy(eos, "SubjectInLeftPane"); 1319 if (dcd) 1320 bool = &dcd->fSubjectInLeftPane; 1321 else 1322 bool = &fSubjectInLeftPane; 1323 *bool = fSubjectInLeftPane; 1324 size = sizeof(BOOL); 1325 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1326 strcpy(eos, "SubjectLengthMax"); 1327 if (dcd) 1328 bool = &dcd->fSubjectLengthMax; 1329 else 1330 bool = &fSubjectLengthMax; 1331 *bool = fSubjectLengthMax; 1332 size = sizeof(BOOL); 1333 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1334 if (dcd) { 1335 if (dcd->fSubjectLengthMax) 1336 dcd->SubjectDisplayWidth = 0; 1337 else { 1338 strcpy(eos, "SubjectDisplayWidth"); 1339 bool = &dcd->SubjectDisplayWidth; 1340 *bool = SubjectDisplayWidth; 1341 size = sizeof(ULONG); 1342 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1343 if (dcd->SubjectDisplayWidth < 50) 1344 dcd->SubjectDisplayWidth = 0; 1345 else if (dcd->SubjectDisplayWidth > 1000) 1346 dcd->SubjectDisplayWidth = 1000; 1347 } 1348 } 1349 else { 1350 if (fSubjectLengthMax) 1351 SubjectDisplayWidth = 0; 1352 else { 1353 strcpy(eos, "SubjectDisplayWidth"); 1354 bool = &SubjectDisplayWidth; 1355 *bool = SubjectDisplayWidth; 1356 size = sizeof(ULONG); 1357 PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size); 1358 if (SubjectDisplayWidth < 50) 1359 SubjectDisplayWidth = 0; 1360 else if (SubjectDisplayWidth > 1000) 1361 SubjectDisplayWidth = 1000; 1362 } 1363 } 1318 1364 } 1319 1365 -
TabularUnified trunk/dll/notebook.c ¶
r920 r922 1679 1679 WinCheckButton(hwnd, CFG5_SUBJECTLENGTHMAX, fSubjectLengthMax); 1680 1680 WinSendDlgItemMsg(hwnd, CFG5_SUBJECTDISPLAYWIDTH, SPBM_SETCURRENTVALUE, 1681 MPFROMLONG(SubjectDisplayWidth), MPVOID);1681 MPFROMLONG(SubjectDisplayWidth), MPVOID); 1682 1682 } 1683 1683 return 0; … … 1813 1813 fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX); 1814 1814 PrfWriteProfileData(fmprof, appname, "SubjectLengthMax", 1815 &fSubject InLeftPane, sizeof(BOOL));1815 &fSubjectLengthMax, sizeof(BOOL)); 1816 1816 PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectLengthMax", 1817 &fSubject InLeftPane, sizeof(BOOL));1817 &fSubjectLengthMax, sizeof(BOOL)); 1818 1818 *mask.prompt = 0; 1819 1819 PrfWriteProfileData(fmprof, appname, "DirFilter", &mask, sizeof(MASK)); … … 1966 1966 switch (msg) { 1967 1967 case WM_INITDLG: 1968 WinSendDlgItemMsg(hwnd, CFG5_SUBJECTDISPLAYWIDTH, SPBM_SETTEXTLIMIT, 1969 MPFROMSHORT(8), MPVOID); 1970 WinSendDlgItemMsg(hwnd, CFG5_SUBJECTDISPLAYWIDTH, SPBM_OVERRIDESETLIMITS, 1971 MPFROMLONG(1000), MPFROMLONG(50)); 1968 1972 WinSendDlgItemMsg(hwnd, CFG5_FILTER, EM_SETTEXTLIMIT, 1969 1973 MPFROM2SHORT(CCHMAXPATH, 0), MPVOID); … … 2028 2032 WinCheckButton(hwnd, CFG5_SHOWCRTIME, dcd.detailscrtime); 2029 2033 WinCheckButton(hwnd, CFG5_SHOWATTR, dcd.detailsattr); 2034 WinCheckButton(hwnd, CFG5_SUBJECTINLEFTPANE, dcd.fSubjectInLeftPane); 2035 WinCheckButton(hwnd, CFG5_SUBJECTLENGTHMAX, dcd.fSubjectLengthMax); 2036 WinSendDlgItemMsg(hwnd, CFG5_SUBJECTDISPLAYWIDTH, SPBM_SETCURRENTVALUE, 2037 MPFROMLONG(dcd.SubjectDisplayWidth), MPVOID); 2038 2030 2039 } 2031 2040 return 0; … … 2136 2145 dcd.detailsattr = WinQueryButtonCheckstate(hwnd, CFG5_SHOWATTR); 2137 2146 PrfWriteProfileData(fmprof, appname, "Collector.DetailsAttr", 2138 &dcd.detailsattr, sizeof(BOOL)); 2147 &dcd.detailsattr, sizeof(BOOL)); 2148 dcd.fSubjectInLeftPane = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTINLEFTPANE); 2149 PrfWriteProfileData(fmprof, appname, "Collector.SubjectInLeftPane", 2150 &dcd.fSubjectInLeftPane, sizeof(BOOL)); 2151 dcd.fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX); 2152 PrfWriteProfileData(fmprof, appname, "Collector.SubjectLengthMax", 2153 &dcd.fSubjectLengthMax, sizeof(BOOL)); 2139 2154 *mask.prompt = 0; 2140 2155 PrfWriteProfileData(fmprof, 2141 appname, "CollectorFilter", &mask, sizeof(MASK)); 2156 appname, "CollectorFilter", &mask, sizeof(MASK)); 2157 { 2158 if (!WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX)) { 2159 WinSendDlgItemMsg(hwnd, CFG5_SUBJECTDISPLAYWIDTH, SPBM_QUERYVALUE, 2160 MPFROMP(&dcd.SubjectDisplayWidth), MPFROM2SHORT(0, SPBQ_DONOTUPDATE)); 2161 if (dcd.SubjectDisplayWidth < 50) 2162 dcd.SubjectDisplayWidth = 0; 2163 else if (dcd.SubjectDisplayWidth > 1000) 2164 dcd.SubjectDisplayWidth = 1000; 2165 } 2166 else 2167 dcd.SubjectDisplayWidth = 0; 2168 PrfWriteProfileData(fmprof, 2169 appname, "Collector.SubjectDisplayWidth", 2170 &dcd.SubjectDisplayWidth, sizeof(ULONG)); 2171 } 2142 2172 } 2143 2173 break;
Note:
See TracChangeset
for help on using the changeset viewer.