- Timestamp:
- Mar 8, 2009, 6:50:25 PM (17 years ago)
- Location:
- trunk/dll
- Files:
-
- 32 edited
-
arccnrs.c (modified) (6 diffs)
-
autoview.c (modified) (2 diffs)
-
collect.c (modified) (8 diffs)
-
common.c (modified) (3 diffs)
-
common.h (modified) (2 diffs)
-
comp.c (modified) (2 diffs)
-
datamin.c (modified) (2 diffs)
-
dircnrs.c (modified) (6 diffs)
-
dirsize.c (modified) (4 diffs)
-
filldir.c (modified) (3 diffs)
-
flesh.c (modified) (2 diffs)
-
grep2.c (modified) (2 diffs)
-
i18nutil.c (modified) (1 diff)
-
info.c (modified) (2 diffs)
-
inis.c (modified) (2 diffs)
-
init.c (modified) (10 diffs)
-
init.h (modified) (6 diffs)
-
mainwnd.c (modified) (11 diffs)
-
misc.c (modified) (6 diffs)
-
misc.h (modified) (2 diffs)
-
mle.c (modified) (3 diffs)
-
newview.c (modified) (10 diffs)
-
notebook.c (modified) (9 diffs)
-
presparm.c (modified) (5 diffs)
-
presparm.h (modified) (2 diffs)
-
rename.c (modified) (2 diffs)
-
saveclip.c (modified) (2 diffs)
-
seeall.c (modified) (3 diffs)
-
treecnr.c (modified) (12 diffs)
-
viewinf.c (modified) (2 diffs)
-
walkem.c (modified) (2 diffs)
-
winlist.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1398 r1400 72 72 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 73 73 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 74 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 75 08 Mar 09 GKY Additional strings move to PCSZs in init.c 74 76 75 77 ***********************************************************************/ … … 81 83 #include <share.h> // SH_DENYWR 82 84 #include <limits.h> // ULONG_MAX 83 // #include <process.h> // _beginthread // 10 Dec 08 SHL84 85 85 86 #if 0 … … 140 141 #include "viewer.h" // StartMLEEditor 141 142 #include "newview.h" // StartViewer 142 #include " commafmt.h" // commafmt143 #include "i18nutil.h" // commafmt 143 144 #include "copyf.h" // unlinkf 144 145 #include "literal.h" // wildcard … … 232 233 Fortify_LeaveScope(); 233 234 # endif 234 // _endthread(); // 10 Dec 08 SHL235 235 } 236 236 … … 2357 2357 2358 2358 case WM_PRESPARAMCHANGED: 2359 PresParamChanged(hwnd, "ArcCnr", mp1, mp2);2359 PresParamChanged(hwnd, PCSZ_ARCCNR, mp1, mp2); 2360 2360 break; 2361 2361 … … 2513 2513 } 2514 2514 } 2515 RestorePresParams(hwnd, "ArcCnr");2515 RestorePresParams(hwnd, PCSZ_ARCCNR); 2516 2516 dcd->mask.fNoAttribs = TRUE; 2517 2517 dcd->mask.fNoDirs = TRUE; -
trunk/dll/autoview.c
r1398 r1400 28 28 07 Feb 09 GKY Add *DateFormat functions to format dates bassed on locale 29 29 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 30 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 30 31 31 32 ***********************************************************************/ … … 64 65 #include "chklist.h" // PopupMenu 65 66 #include "wrappers.h" // xDosSetPathInfo 66 #include " commafmt.h" // CommaFmtULL67 #include "i18nutil.h" // CommaFmtULL 67 68 #include "fortify.h" 68 69 #include "excputil.h" // 06 May 08 SHL added -
trunk/dll/collect.c
r1398 r1400 63 63 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 64 64 07 Feb 09 GKY Move repeated strings to PCSZs. 65 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 66 08 Mar 09 GKY Additional strings move to PCSZs in init.c 65 67 66 68 ***********************************************************************/ … … 130 132 #include "newview.h" // StartViewer 131 133 #include "undel.h" // UndeleteDlgProc 132 #include " commafmt.h" // commafmt134 #include "i18nutil.h" // commafmt 133 135 #include "getnames.h" // insert_filename 134 136 #include "select.h" // InvertAll … … 1204 1206 1205 1207 case WM_PRESPARAMCHANGED: 1206 PresParamChanged(hwnd, "Collector", mp1, mp2);1208 PresParamChanged(hwnd, PCSZ_COLLECTOR, mp1, mp2); 1207 1209 break; 1208 1210 … … 1415 1417 CNRINFO cnri; 1416 1418 1417 RestorePresParams(hwnd, "Collector");1418 LoadDetailsSwitches( "Collector", &dcd->ds);1419 RestorePresParams(hwnd, PCSZ_COLLECTOR); 1420 LoadDetailsSwitches(PCSZ_COLLECTOR, &dcd->ds); 1419 1421 1420 1422 dcd->amextracted = FALSE; // Say not busy … … 1580 1582 else { 1581 1583 if (!PostMsg(dcd->hwndObject, UM_COLLECTFROMFILE, mp1, mp2)) { 1582 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");1584 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 1583 1585 } 1584 1586 } … … 1595 1597 if (dcd) { 1596 1598 if (!PostMsg(dcd->hwndObject, UM_COMMAND, mp1, mp2)) { 1597 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");1599 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 1598 1600 FreeListInfo((LISTINFO *) mp1); 1599 1601 } … … 2082 2084 AdjustDetailsSwitches(hwnd, dcd->hwndLastMenu, 2083 2085 SHORT1FROMMP(mp1), NULL, 2084 "Collector", &dcd->ds, FALSE);2086 PCSZ_COLLECTOR, &dcd->ds, FALSE); 2085 2087 break; 2086 2088 … … 2262 2264 *li->targetpath = 0; 2263 2265 if (!PostMsg(dcd->hwndObject, action, MPFROMP(li), MPVOID)) { 2264 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");2266 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 2265 2267 FreeListInfo(li); 2266 2268 } -
trunk/dll/common.c
r1398 r1400 25 25 11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c 26 26 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 27 08 Mar 09 GKY Additional strings move to PCSZs in init.c 27 28 28 29 ***********************************************************************/ … … 199 200 } 200 201 201 void CommonCreateTextChildren(HWND hwnd, char *class, USHORT * ids)202 void CommonCreateTextChildren(HWND hwnd, PCSZ class, USHORT * ids) 202 203 { 203 204 int x; … … 373 374 DosError(FERR_DISABLEHARDERR); 374 375 rc = DosDevIOCtl(-1L, 8L, 0x40L, &parm, sizeof(parm), &plen, NULL, 0L, &dlen); 375 DbgMsg(pszSrcFile, __LINE__, "Eject parm %i %i rc %i", parm[0], parm[1], rc);376 376 if (cmd == IDM_EJECT && 377 377 (fEjectFlpyScan ? TRUE : parm[1] > 1) && -
trunk/dll/common.h
r1205 r1400 10 10 11 11 Change log 12 08 Mar 09 GKY Additional strings move to PCSZs in init.c (Declare changes) 12 13 13 14 ***********************************************************************/ … … 18 19 MRESULT EXPENTRY CommonCnrProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 19 20 void CommonCreateMainChildren(HWND hwnd, SWP * swp); 20 void CommonCreateTextChildren(HWND hwnd, char *class, USHORT * ids);21 void CommonCreateTextChildren(HWND hwnd, PCSZ class, USHORT * ids); 21 22 void CommonDriveCmd(HWND hwnd, char *drive, USHORT cmd); 22 23 MRESULT EXPENTRY CommonFrameWndProc(USHORT id, -
trunk/dll/comp.c
r1398 r1400 62 62 11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c 63 63 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 64 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 64 65 65 66 ***********************************************************************/ … … 116 117 #include "wrappers.h" // xDosFindNext 117 118 #include "notebook.h" // External compare/dircompare 118 #include " commafmt.h" // CommaFmtULL119 #include "i18nutil.h" // CommaFmtULL 119 120 #include "fortify.h" // 06 May 08 SHL added 120 121 #include "excputil.h" // xbeginthread -
trunk/dll/datamin.c
r1397 r1400 27 27 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 28 28 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 29 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 29 30 30 31 ***********************************************************************/ … … 54 55 #include "errutil.h" // Dos_Error... 55 56 #include "strutil.h" // GetPString 56 #include " commafmt.h" // CommaFmtUL57 #include "i18nutil.h" // CommaFmtUL 57 58 #include "killproc.h" // KillDlgProc 58 59 #include "sysinfo.h" // SysInfoDlgProc 59 60 #include "mainwnd.h" // TopWindowName 60 #include "commafmt.h" // CommaFmtUL61 61 #include "common.h" // OpenDirCnr 62 62 #include "shadow.h" // OpenObject -
trunk/dll/dircnrs.c
r1398 r1400 58 58 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 59 59 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 60 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 61 08 Mar 09 GKY Additional strings move to PCSZs in init.c 60 62 61 63 ***********************************************************************/ … … 130 132 #include "newview.h" // StartViewer 131 133 #include "undel.h" // UndeleteDlgProc 132 #include " commafmt.h" // commafmt134 #include "i18nutil.h" // commafmt 133 135 #include "getnames.h" // insert_filename 134 136 #include "wrappers.h" // xfree … … 1378 1380 1379 1381 case WM_PRESPARAMCHANGED: 1380 PresParamChanged(hwnd, "DirCnr", mp1, mp2);1382 PresParamChanged(hwnd, PCSZ_DIRCNR, mp1, mp2); 1381 1383 break; 1382 1384 … … 1823 1825 if (dcd) { 1824 1826 if (!PostMsg(dcd->hwndObject, UM_COMMAND, mp1, mp2)) { 1825 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");1827 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 1826 1828 FreeListInfo((LISTINFO *) mp1); 1827 1829 } … … 2741 2743 *li->targetpath = 0; 2742 2744 if (!PostMsg(dcd->hwndObject, action, MPFROMP(li), MPVOID)) { 2743 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");2745 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 2744 2746 FreeListInfo(li); 2745 2747 } … … 3697 3699 Fortify_ChangeScope(dcd, -1); 3698 3700 # endif 3699 RestorePresParams(dcd->hwndCnr, "DirCnr");3701 RestorePresParams(dcd->hwndCnr, PCSZ_DIRCNR); 3700 3702 WinSetWindowPtr(dcd->hwndCnr, QWL_USER, (PVOID) dcd); 3701 3703 dcd->oldproc = WinSubclassWindow(dcd->hwndCnr, -
trunk/dll/dirsize.c
r1398 r1400 43 43 10 Dec 08 SHL Integrate exception handler support 44 44 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 45 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 46 08 Mar 09 GKY Additional strings move to PCSZs in init.c 45 47 46 48 ***********************************************************************/ … … 76 78 #include "shadow.h" // OpenObject 77 79 #include "presparm.h" // PresParamChanged 78 #include " commafmt.h" // commafmt80 #include "i18nutil.h" // commafmt 79 81 #include "getnames.h" // export_filename 80 82 #include "wrappers.h" // xDosFindNext … … 510 512 { 511 513 CHAR s[CCHMAXPATH + 81]; 512 RestorePresParams(hwnd, "DirSizes");514 RestorePresParams(hwnd, PCSZ_DIRSIZES); 513 515 sprintf(s, GetPString(IDS_DIRSIZETITLETEXT), pState->szDirName); 514 516 WinSetWindowText(hwnd, s); … … 659 661 660 662 case WM_PRESPARAMCHANGED: 661 PresParamChanged(hwnd, "DirSizes", mp1, mp2);663 PresParamChanged(hwnd, PCSZ_DIRSIZES, mp1, mp2); 662 664 break; 663 665 -
trunk/dll/filldir.c
r1398 r1400 65 65 25 Dec 08 GKY Add ProcessDirectoryThread to allow optional recursive drive scan at startup. 66 66 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 67 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 68 08 Mar 09 GKY Additional strings move to PCSZs in init.c 67 69 68 70 ***********************************************************************/ … … 99 101 #include "copyf.h" // unlinkf 100 102 #include "literal.h" // wildcard 101 #include " commafmt.h" // CommaFmtULL103 #include "i18nutil.h" // CommaFmtULL 102 104 #include "wrappers.h" // xDosFindNext 103 105 #include "init.h" // GetTidForWindow … … 1610 1612 p++; 1611 1613 if (*szFSType && 1612 (!stricmp(szFSType, "LIBPATH") || getenv(szFSType))) {1614 (!stricmp(szFSType, PCSZ_LIBPATH) || getenv(szFSType))) { 1613 1615 pci = WinSendMsg(hwndCnr, 1614 1616 CM_ALLOCRECORD, -
trunk/dll/flesh.c
r1358 r1400 24 24 25 Dec 08 GKY Add DRIVE_RSCANNED flag to monitor for the first recursive drive scan per session 25 25 to prevent duplicate directory names in tree following a copy before initial scan. 26 08 Mar 09 GKY Additional strings move to PCSZs in init.c 26 27 27 28 ***********************************************************************/ … … 81 82 if (*path) { 82 83 path[strlen(path) - 1] = 0; 83 if (!stricmp(path, "LIBPATH")) {84 if (!stricmp(path, PCSZ_LIBPATH)) { 84 85 var = xmalloc(65536, pszSrcFile, __LINE__); 85 86 if (var) -
trunk/dll/grep2.c
r1398 r1400 25 25 01 Jan 09 GKY Add Seek and Scan to drives & directory context menus pass drive/dir as search root 26 26 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 27 08 Mar 09 GKY Additional strings move to PCSZs in init.c 27 28 28 29 fixme for more excess locals to be gone … … 540 541 if (!*path) 541 542 break; 542 if (!stricmp(path, "LIBPATH"))543 if (!stricmp(path, PCSZ_LIBPATH)) 543 544 LoadLibPath(env, 8192); 544 545 else { -
trunk/dll/i18nutil.c
r1399 r1400 16 16 10 Nov 07 GKY Get thousands separator from country info for file sizes. 17 17 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 18 08 Mar 09 GKY Renamed commafmt.h/c i18nutil.h/c 18 19 19 20 ***********************************************************************/ -
trunk/dll/info.c
r1398 r1400 31 31 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 32 32 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 33 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 33 34 34 35 ***********************************************************************/ … … 69 70 #include "presparm.h" // SetPresParams 70 71 #include "strips.h" // bstrip 71 #include " commafmt.h" // CommaFmtULL72 #include "i18nutil.h" // CommaFmtULL 72 73 #include "wrappers.h" // xDosFindFirst 73 74 #include "fortify.h" -
trunk/dll/inis.c
r1398 r1400 32 32 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 33 33 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 34 08 Mar 09 GKY Additional strings move to PCSZs in init.c 34 35 35 36 ***********************************************************************/ … … 1975 1976 PP_FONTNAMESIZE, 1976 1977 strlen(FNT_10SYSTEMMONOTEXT) + 1, 1977 FNT_10SYSTEMMONOTEXT))1978 (PVOID) FNT_10SYSTEMMONOTEXT)) 1978 1979 WinSetPresParam(WinWindowFromID(hwnd, INI_DATALIST), 1979 1980 PP_FONTNAMESIZE, 1980 1981 strlen(FNT_10SYSTEMMONOTEXT) + 1, 1981 FNT_10SYSTEMMONOTEXT);1982 (PVOID) FNT_10SYSTEMMONOTEXT); 1982 1983 RestorePresParams(hwnd, "IniUtil"); 1983 1984 return 0; -
trunk/dll/init.c
r1398 r1400 74 74 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 75 75 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 76 08 Mar 09 GKY Additional strings move to PCSZs in init.c 76 77 77 78 ***********************************************************************/ … … 228 229 PCSZ PCSZ_FM2PLAYEXE; 229 230 PCSZ PCSZ_FM2PLAYTEMP; 231 PCSZ PCSZ_LVMGUICMD; 232 PCSZ PCSZ_DFSOS2EXE; 233 PCSZ PCSZ_MINILVMEXE; 234 PCSZ PCSZ_FDISKPMEXE; 235 PCSZ PCSZ_LVMEXE; 236 PCSZ PCSZ_ARCCNR; 237 PCSZ PCSZ_COLLECTOR; 238 PCSZ PCSZ_DIRCNR; 239 PCSZ PCSZ_DIRSIZES; 240 PCSZ PCSZ_TOOLBAR; 241 PCSZ PCSZ_TREECNR; 230 242 CHAR *CBSIFS; 231 243 CHAR *DRF_FM2ARCHIVE; … … 237 249 HMODULE FM3DllHandle; 238 250 CHAR *FM3Folder; 239 CHAR *FNT_6HELVETICA;240 CHAR *FNT_8HELVETICA;241 CHAR *FNT_8HELVETICABOLD;242 CHAR *FNT_10SYSTEMMONOTEXT;243 CHAR *FNT_10SYSTEMPROPORT;244 CHAR *FNT_2SYSTEMVIO;245 CHAR *FNT_4SYSTEMVIO;246 CHAR *FNT_10SYSTEMVIO;247 CHAR *FNT_8TIMESNEWROMAN;251 PCSZ FNT_6HELVETICA; 252 PCSZ FNT_8HELVETICA; 253 PCSZ FNT_8HELVETICABOLD; 254 PCSZ FNT_10SYSTEMMONOTEXT; 255 PCSZ FNT_10SYSTEMPROPORT; 256 PCSZ FNT_2SYSTEMVIO; 257 PCSZ FNT_4SYSTEMVIO; 258 PCSZ FNT_10SYSTEMVIO; 259 PCSZ FNT_8TIMESNEWROMAN; 248 260 CHAR HomePath[CCHMAXPATH]; 249 261 CHAR *LONGNAME; … … 254 266 PCSZ PCSZ_DOSQUERYPATHINFO; 255 267 PCSZ PCSZ_DOSSEARCHPATH; 268 PCSZ PCSZ_POSTMSG; 256 269 PCSZ PCSZ_WINCREATEWINDOW; 257 270 PCSZ PCSZ_WINLOADACCELTABLE; … … 288 301 PCSZ PCSZ_DOTCOMMENTS; 289 302 PCSZ PCSZ_PATH; 303 PCSZ PCSZ_LIBPATH; 304 CHAR *pLibPathStrict; 305 PCSZ PCSZ_WPURLDEFAULTSETTINGS; 290 306 CHAR *Settings; 291 307 CHAR SwapperDat[CCHMAXPATH]; 292 CHAR *WC_ARCCONTAINER;293 CHAR *WC_ARCSTATUS;294 CHAR *WC_AUTOVIEW;295 CHAR *WC_BUBBLE;296 CHAR *WC_COLLECTOR;297 CHAR *WC_COLSTATUS;298 CHAR *WC_DATABAR;299 CHAR *WC_DIRCONTAINER;300 CHAR *WC_DIRSTATUS;301 CHAR *WC_DRIVEBACK;302 CHAR *WC_DRIVEBUTTONS;303 CHAR *WC_ERRORWND;304 CHAR *WC_INIEDITOR;305 CHAR *WC_LED;306 CHAR *WC_MAINWND2;307 CHAR *WC_MINITIME;308 CHAR *WC_MLEEDITOR;309 CHAR *WC_NEWVIEW;310 CHAR *WC_OBJECTWINDOW;311 CHAR *WC_SEEALL;312 CHAR *WC_SEESTATUS;313 CHAR *WC_STATUS;314 CHAR *WC_TOOLBACK;315 CHAR *WC_TOOLBUTTONS;316 CHAR *WC_TREECONTAINER;317 CHAR *WC_TREEOPENBUTTON;318 CHAR *WC_TREESTATUS;319 CHAR *WC_VIEWSTATUS;308 PCSZ WC_ARCCONTAINER; 309 PCSZ WC_ARCSTATUS; 310 PCSZ WC_AUTOVIEW; 311 PCSZ WC_BUBBLE; 312 PCSZ WC_COLLECTOR; 313 PCSZ WC_COLSTATUS; 314 PCSZ WC_DATABAR; 315 PCSZ WC_DIRCONTAINER; 316 PCSZ WC_DIRSTATUS; 317 PCSZ WC_DRIVEBACK; 318 PCSZ WC_DRIVEBUTTONS; 319 PCSZ WC_ERRORWND; 320 PCSZ WC_INIEDITOR; 321 PCSZ WC_LED; 322 PCSZ WC_MAINWND2; 323 PCSZ WC_MINITIME; 324 PCSZ WC_MLEEDITOR; 325 PCSZ WC_NEWVIEW; 326 PCSZ WC_OBJECTWINDOW; 327 PCSZ WC_SEEALL; 328 PCSZ WC_SEESTATUS; 329 PCSZ WC_STATUS; 330 PCSZ WC_TOOLBACK; 331 PCSZ WC_TOOLBUTTONS; 332 PCSZ WC_TREECONTAINER; 333 PCSZ WC_TREEOPENBUTTON; 334 PCSZ WC_TREESTATUS; 335 PCSZ WC_VIEWSTATUS; 320 336 CHAR profile[CCHMAXPATH]; 321 337 ULONGLONG ullTmpSpaceNeeded; … … 496 512 PCSZ_FM2PLAYEXE = "FM2PLAY.EXE"; 497 513 PCSZ_FM2PLAYTEMP = "$FM2PLAY.$$$"; 514 PCSZ_LVMGUICMD = "LVMGUI.CMD"; 515 PCSZ_DFSOS2EXE = "DFSOS2.EXE"; 516 PCSZ_MINILVMEXE = "MINILVM.EXE"; 517 PCSZ_FDISKPMEXE = "FDISKPM.EXE"; 518 PCSZ_LVMEXE = "LVM.EXE"; 519 PCSZ_ARCCNR = "ArcCnr"; 520 PCSZ_COLLECTOR = "Collector"; 521 PCSZ_DIRCNR = "DirCnr"; 522 PCSZ_DIRSIZES = "DirSizes"; 523 PCSZ_TOOLBAR = "ToolBar"; 524 PCSZ_TREECNR = "TreeCnr"; 498 525 FNT_6HELVETICA = "6.Helvetica"; 499 526 FNT_8HELVETICA = "8.Helvetica"; … … 510 537 PCSZ_DOSQUERYPATHINFO = "DosQueryPathInfo"; 511 538 PCSZ_DOSSEARCHPATH = "DosSearchPath"; 539 PCSZ_POSTMSG = "PostMsg"; 512 540 PCSZ_WINCREATEWINDOW = "WinCreateWindow"; 513 541 PCSZ_WINLOADACCELTABLE = "WinLoadAccelTable"; … … 544 572 PCSZ_DOTCOMMENTS = ".COMMENTS"; 545 573 PCSZ_PATH = "PATH"; 574 PCSZ_LIBPATH = "LIBPATH"; 575 pLibPathStrict = "SET LIBPATHSTRICT=TRUE"; 576 PCSZ_WPURLDEFAULTSETTINGS = "WPURLDEFAULTSETTINGS"; 546 577 WC_OBJECTWINDOW = "WC_OBJECTWINDOW"; 547 578 WC_BUBBLE = "WC_BUBBLE"; … … 1409 1440 ULONG ulAppType; 1410 1441 1411 FullPath = searchapath(PCSZ_PATH, "LVMGUI.CMD");1442 FullPath = searchapath(PCSZ_PATH, PCSZ_LVMGUICMD); 1412 1443 if (*FullPath) 1413 1444 fLVMGui = TRUE; 1414 if (!DosQueryAppType( "DFSOS2.EXE", &ulAppType))1445 if (!DosQueryAppType(PCSZ_DFSOS2EXE, &ulAppType)) 1415 1446 fDFSee = TRUE; 1416 if (!DosQueryAppType( "MINILVM.EXE", &ulAppType))1447 if (!DosQueryAppType(PCSZ_MINILVMEXE, &ulAppType)) 1417 1448 fMiniLVM = TRUE; 1418 if (!DosQueryAppType( "FDISK.EXE", &ulAppType))1449 if (!DosQueryAppType(PCSZ_FDISKPMEXE, &ulAppType)) 1419 1450 fFDisk = TRUE; 1420 if (!DosQueryAppType( "LVM.EXE", &ulAppType))1451 if (!DosQueryAppType(PCSZ_LVMEXE, &ulAppType)) 1421 1452 fLVM = TRUE; 1422 1453 … … 1791 1822 PrfQueryProfileData(fmprof, FM3Str, "TrashCan", &fTrashCan, &size); 1792 1823 1793 LoadDetailsSwitches( "DirCnr", &dsDirCnrDefault);1824 LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault); 1794 1825 1795 1826 /* load pointers and icons we use */ -
trunk/dll/init.h
r1398 r1400 17 17 07 Feb 09 GKY Move repeated strings to PCSZs. 18 18 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 19 08 Mar 09 GKY Additional strings move to PCSZs in init.c 19 20 20 21 ***********************************************************************/ … … 41 42 extern PCSZ PCSZ_FM2PLAYEXE; 42 43 extern PCSZ PCSZ_FM2PLAYTEMP; 44 extern PCSZ PCSZ_LVMGUICMD; 45 extern PCSZ PCSZ_DFSOS2EXE; 46 extern PCSZ PCSZ_MINILVMEXE; 47 extern PCSZ PCSZ_FDISKPMEXE; 48 extern PCSZ PCSZ_LVMEXE; 49 extern PCSZ PCSZ_ARCCNR; 50 extern PCSZ PCSZ_COLLECTOR; 51 extern PCSZ PCSZ_DIRCNR; 52 extern PCSZ PCSZ_DIRSIZES; 53 extern PCSZ PCSZ_TOOLBAR; 54 extern PCSZ PCSZ_TREECNR; 43 55 extern CHAR *CBSIFS; 44 56 extern CHAR *DRMDRFFM2ARC; … … 62 74 extern ULONG ulTimeFmt; 63 75 extern ULONG ulDateFmt; 64 extern CHAR *FNT_6HELVETICA;65 extern CHAR *FNT_8HELVETICA;66 extern CHAR *FNT_8HELVETICABOLD;67 extern CHAR *FNT_10SYSTEMMONOTEXT;68 extern CHAR *FNT_10SYSTEMPROPORT;69 extern CHAR *FNT_2SYSTEMVIO;70 extern CHAR *FNT_4SYSTEMVIO;71 extern CHAR *FNT_10SYSTEMVIO;72 extern CHAR *FNT_8TIMESNEWROMAN;76 extern PCSZ FNT_6HELVETICA; 77 extern PCSZ FNT_8HELVETICA; 78 extern PCSZ FNT_8HELVETICABOLD; 79 extern PCSZ FNT_10SYSTEMMONOTEXT; 80 extern PCSZ FNT_10SYSTEMPROPORT; 81 extern PCSZ FNT_2SYSTEMVIO; 82 extern PCSZ FNT_4SYSTEMVIO; 83 extern PCSZ FNT_10SYSTEMVIO; 84 extern PCSZ FNT_8TIMESNEWROMAN; 73 85 extern PCSZ PCSZ_DOSCREATEMUTEXSEM; 74 86 extern PCSZ PCSZ_DOSDUPHANDLE; … … 76 88 extern PCSZ PCSZ_DOSQUERYPATHINFO; 77 89 extern PCSZ PCSZ_DOSSEARCHPATH; 90 extern PCSZ PCSZ_POSTMSG; 78 91 extern PCSZ PCSZ_WINCREATEWINDOW; 79 92 extern PCSZ PCSZ_WINLOADACCELTABLE; … … 110 123 extern PCSZ PCSZ_DOTCOMMENTS; 111 124 extern PCSZ PCSZ_PATH; 112 extern CHAR *WC_ARCCONTAINER; 113 extern CHAR *WC_ARCSTATUS; 114 extern CHAR *WC_AUTOVIEW; 115 extern CHAR *WC_BUBBLE; 116 extern CHAR *WC_COLLECTOR; 117 extern CHAR *WC_COLSTATUS; 118 extern CHAR *WC_DATABAR; 119 extern CHAR *WC_DIRCONTAINER; 120 extern CHAR *WC_DIRSTATUS; 121 extern CHAR *WC_DRIVEBACK; 122 extern CHAR *WC_DRIVEBUTTONS; 123 extern CHAR *WC_ERRORWND; 124 extern CHAR *WC_INIEDITOR; 125 extern CHAR *WC_LED; 126 extern CHAR *WC_MAINWND2; 127 extern CHAR *WC_MINITIME; 128 extern CHAR *WC_MLEEDITOR; 129 extern CHAR *WC_NEWVIEW; 130 extern CHAR *WC_OBJECTWINDOW; 131 extern CHAR *WC_SEEALL; 132 extern CHAR *WC_SEESTATUS; 133 extern CHAR *WC_STATUS; 134 extern CHAR *WC_TOOLBACK; 135 extern CHAR *WC_TOOLBUTTONS; 136 extern CHAR *WC_TREECONTAINER; 137 extern CHAR *WC_TREEOPENBUTTON; 138 extern CHAR *WC_TREESTATUS; 139 extern CHAR *WC_VIEWSTATUS; 125 extern PCSZ PCSZ_LIBPATH; 126 extern PCSZ PCSZ_WPURLDEFAULTSETTINGS; 127 extern PCSZ WC_ARCCONTAINER; 128 extern PCSZ WC_ARCSTATUS; 129 extern PCSZ WC_AUTOVIEW; 130 extern PCSZ WC_BUBBLE; 131 extern PCSZ WC_COLLECTOR; 132 extern PCSZ WC_COLSTATUS; 133 extern PCSZ WC_DATABAR; 134 extern PCSZ WC_DIRCONTAINER; 135 extern PCSZ WC_DIRSTATUS; 136 extern PCSZ WC_DRIVEBACK; 137 extern PCSZ WC_DRIVEBUTTONS; 138 extern PCSZ WC_ERRORWND; 139 extern PCSZ WC_INIEDITOR; 140 extern PCSZ WC_LED; 141 extern PCSZ WC_MAINWND2; 142 extern PCSZ WC_MINITIME; 143 extern PCSZ WC_MLEEDITOR; 144 extern PCSZ WC_NEWVIEW; 145 extern PCSZ WC_OBJECTWINDOW; 146 extern PCSZ WC_SEEALL; 147 extern PCSZ WC_SEESTATUS; 148 extern PCSZ WC_STATUS; 149 extern PCSZ WC_TOOLBACK; 150 extern PCSZ WC_TOOLBUTTONS; 151 extern PCSZ WC_TREECONTAINER; 152 extern PCSZ WC_TREEOPENBUTTON; 153 extern PCSZ WC_TREESTATUS; 154 extern PCSZ WC_VIEWSTATUS; 140 155 extern BOOL fInitialDriveScan; 141 156 extern BOOL fAmAV2; … … 165 180 extern CHAR *pTmpDir; 166 181 extern CHAR profile[CCHMAXPATH]; 182 extern CHAR *pLibPathStrict; 167 183 extern ULONGLONG ullTmpSpaceNeeded; 168 184 extern HMTX hmtxFM2Globals; -
trunk/dll/mainwnd.c
r1398 r1400 80 80 11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c 81 81 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 82 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 83 08 Mar 09 GKY Additional strings move to PCSZs in init.c 84 08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code 82 85 83 86 ***********************************************************************/ … … 154 157 #include "select.h" // UnHilite 155 158 #include "strips.h" // bstrip 156 #include " commafmt.h" // CommaFmtULL159 #include "i18nutil.h" // CommaFmtULL 157 160 #include "valid.h" // IsFullName 158 161 #include "dirs.h" // save_dir2 … … 2659 2662 2660 2663 case WM_PRESPARAMCHANGED: 2661 PresParamChanged(hwnd, "ToolBar", mp1, mp2);2664 PresParamChanged(hwnd, PCSZ_TOOLBAR, mp1, mp2); 2662 2665 WinInvalidateRect(hwnd, NULL, TRUE); 2663 2666 break; … … 2668 2671 TOOL *tool; 2669 2672 2670 RestorePresParams(hwnd, "ToolBar");2673 RestorePresParams(hwnd, PCSZ_TOOLBAR); 2671 2674 id = SHORT1FROMMP(mp1); 2672 2675 tool = find_tool(id); … … 2981 2984 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & swp, 2982 2985 sizeof(SWP)); 2983 dcd = 2984 WinQueryWindowPtr(WinWindowFromID(hwndC, DIR_CNR), QWL_USER); 2986 dcd = WinQueryWindowPtr(WinWindowFromID(hwndC, DIR_CNR), QWL_USER); 2985 2987 if (dcd) { 2986 2988 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, numsaves); … … 3009 3011 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & flWindowAttr, 3010 3012 sizeof(ULONG)); 3011 sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, numsaves); 3012 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslongname, 3013 sizeof(BOOL)); 3014 sprintf(szKey, "%sDirCnr.%lu.DetailsSubject", szPrefix, numsaves); 3015 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailssubject, 3016 sizeof(BOOL)); 3017 sprintf(szKey, "%sDirCnr.%lu.DetailsSize", szPrefix, numsaves); 3018 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailssize, 3019 sizeof(BOOL)); 3020 sprintf(szKey, "%sDirCnr.%lu.DetailsEA", szPrefix, numsaves); 3021 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsea, 3022 sizeof(BOOL)); 3023 sprintf(szKey, "%sDirCnr.%lu.DetailsAttr", szPrefix, numsaves); 3024 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsattr, 3025 sizeof(BOOL)); 3026 sprintf(szKey, "%sDirCnr.%lu.DetailsIcon", szPrefix, numsaves); 3027 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsicon, 3028 sizeof(BOOL)); 3029 sprintf(szKey, "%sDirCnr.%lu.DetailsLWDate", szPrefix, numsaves); 3030 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslwdate, 3031 sizeof(BOOL)); 3032 sprintf(szKey, "%sDirCnr.%lu.DetailsLWTime", szPrefix, numsaves); 3033 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslwtime, 3034 sizeof(BOOL)); 3035 sprintf(szKey, "%sDirCnr.%lu.DetailsLADate", szPrefix, numsaves); 3036 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailsladate, 3037 sizeof(BOOL)); 3038 sprintf(szKey, "%sDirCnr.%lu.DetailsLATime", szPrefix, numsaves); 3039 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailslatime, 3040 sizeof(BOOL)); 3041 sprintf(szKey, "%sDirCnr.%lu.DetailsCRDate", szPrefix, numsaves); 3042 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailscrdate, 3043 sizeof(BOOL)); 3044 sprintf(szKey, "%sDirCnr.%lu.DetailsCRTime", szPrefix, numsaves); 3045 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->ds.detailscrtime, 3046 sizeof(BOOL)); 3013 sprintf(szKey, "%sDirCnr.%lu", szPrefix, numsaves); 3014 WriteDetailsSwitches(szKey, &dcd->ds); 3047 3015 sprintf(szKey, "%sDirCnr.%lu", szPrefix, numsaves); 3048 3016 SavePresParams(hwndDir, szKey); … … 3068 3036 sprintf(szKey, "%sDirCnrView.%lu", szPrefix, ulTemp); 3069 3037 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(ULONG)); 3070 sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, ulTemp); 3071 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3072 sprintf(szKey, "%sDirCnr.%lu.DetailsSubject", szPrefix, ulTemp); 3073 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3074 sprintf(szKey, "%sDirCnr.%lu.DetailsSize", szPrefix, ulTemp); 3075 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3076 sprintf(szKey, "%sDirCnr.%lu.DetailsEA", szPrefix, ulTemp); 3077 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3078 sprintf(szKey, "%sDirCnr.%lu.DetailsAttr", szPrefix, ulTemp); 3079 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3080 sprintf(szKey, "%sDirCnr.%lu.DetailsIcon", szPrefix, ulTemp); 3081 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3082 sprintf(szKey, "%sDirCnr.%lu.DetailsLWDate", szPrefix, ulTemp); 3083 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3084 sprintf(szKey, "%sDirCnr.%lu.DetailsLWTime", szPrefix, ulTemp); 3085 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3086 sprintf(szKey, "%sDirCnr.%lu.DetailsLADate", szPrefix, ulTemp); 3087 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3088 sprintf(szKey, "%sDirCnr.%lu.DetailsLATime", szPrefix, ulTemp); 3089 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3090 sprintf(szKey, "%sDirCnr.%lu.DetailsCRDate", szPrefix, ulTemp); 3091 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3092 sprintf(szKey, "%sDirCnr.%lu.DetailsCRTime", szPrefix, ulTemp); 3093 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL)); 3038 3039 sprintf(szKey, "%sDirCnr.%lu", szPrefix, ulTemp); 3040 WriteDetailsSwitches(szKey, NULL); 3094 3041 sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, ulTemp); 3095 3042 PrfWriteProfileString(fmprof, FM3Str, szKey, NULL); … … 3293 3240 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3294 3241 } 3295 localdcd.ds.detailssubject = dsDirCnrDefault.detailssubject; // Set default 3296 sprintf(szKey, "%sDirCnr.%lu.DetailsSubject", szPrefix, x); 3297 size = sizeof(BOOL); 3298 if (PrfQueryProfileData(fmprof, 3299 FM3Str, 3300 szKey, 3301 (PVOID) &localdcd.ds.detailssubject, 3302 &size)) 3303 { 3304 if (fDeleteState) 3305 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3306 } 3307 localdcd.ds.detailsea = dsDirCnrDefault.detailsea; // Set default 3308 sprintf(szKey, "%sDirCnr.%lu.DetailsEA", szPrefix, x); 3309 size = sizeof(BOOL); 3310 if (PrfQueryProfileData(fmprof, 3311 FM3Str, 3312 szKey, 3313 (PVOID) &localdcd.ds.detailsea, 3314 &size)) 3315 { 3316 if (fDeleteState) 3317 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3318 } 3319 localdcd.ds.detailssize = dsDirCnrDefault.detailssize; // Set default 3320 sprintf(szKey, "%sDirCnr.%lu.DetailsSize", szPrefix, x); 3321 size = sizeof(BOOL); 3322 if (PrfQueryProfileData(fmprof, 3323 FM3Str, 3324 szKey, 3325 (PVOID) &localdcd.ds.detailssize, 3326 &size)) 3327 { 3328 if (fDeleteState) 3329 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3330 } 3331 localdcd.ds.detailsicon = dsDirCnrDefault.detailsicon; // Set default 3332 sprintf(szKey, "%sDirCnr.%lu.DetailsIcon", szPrefix, x); 3333 size = sizeof(BOOL); 3334 if (PrfQueryProfileData(fmprof, 3335 FM3Str, 3336 szKey, 3337 (PVOID) &localdcd.ds.detailsicon, 3338 &size)) 3339 { 3340 if (fDeleteState) 3341 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3342 } 3343 localdcd.ds.detailsattr = dsDirCnrDefault.detailsattr; // Set default 3344 sprintf(szKey, "%sDirCnr.%lu.DetailsAttr", szPrefix, x); 3345 size = sizeof(BOOL); 3346 if (PrfQueryProfileData(fmprof, 3347 FM3Str, 3348 szKey, 3349 (PVOID) &localdcd.ds.detailsattr, 3350 &size)) 3351 { 3352 if (fDeleteState) 3353 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3354 } 3355 localdcd.ds.detailscrdate = dsDirCnrDefault.detailscrdate; // Set default 3356 sprintf(szKey, "%sDirCnr.%lu.DetailsCRDate", szPrefix, x); 3357 size = sizeof(BOOL); 3358 if (PrfQueryProfileData(fmprof, 3359 FM3Str, 3360 szKey, 3361 (PVOID) &localdcd.ds.detailscrdate, 3362 &size)) 3363 { 3364 if (fDeleteState) 3365 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3366 } 3367 localdcd.ds.detailscrtime = dsDirCnrDefault.detailscrtime; // Set default 3368 sprintf(szKey, "%sDirCnr.%lu.DetailsCRTime", szPrefix, x); 3369 size = sizeof(BOOL); 3370 if (PrfQueryProfileData(fmprof, 3371 FM3Str, 3372 szKey, 3373 (PVOID) &localdcd.ds.detailscrtime, 3374 &size)) 3375 { 3376 if (fDeleteState) 3377 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3378 } 3379 localdcd.ds.detailslwdate = dsDirCnrDefault.detailslwdate; // Set default 3380 sprintf(szKey, "%sDirCnr.%lu.DetailsLWDate", szPrefix, x); 3381 size = sizeof(BOOL); 3382 if (PrfQueryProfileData(fmprof, 3383 FM3Str, 3384 szKey, 3385 (PVOID) &localdcd.ds.detailslwdate, 3386 &size)) 3387 { 3388 if (fDeleteState) 3389 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3390 } 3391 localdcd.ds.detailslwtime = dsDirCnrDefault.detailslwtime; // Set default 3392 sprintf(szKey, "%sDirCnr.%lu.DetailsLWTime", szPrefix, x); 3393 size = sizeof(BOOL); 3394 if (PrfQueryProfileData(fmprof, 3395 FM3Str, 3396 szKey, 3397 (PVOID) &localdcd.ds.detailslwtime, 3398 &size)) 3399 { 3400 if (fDeleteState) 3401 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3402 } 3403 localdcd.ds.detailsladate = dsDirCnrDefault.detailsladate; // Set default 3404 sprintf(szKey, "%sDirCnr.%lu.DetailsLADate", szPrefix, x); 3405 size = sizeof(BOOL); 3406 if (PrfQueryProfileData(fmprof, 3407 FM3Str, 3408 szKey, 3409 (PVOID) &localdcd.ds.detailsladate, 3410 &size)) 3411 { 3412 if (fDeleteState) 3413 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3414 } 3415 localdcd.ds.detailslatime = dsDirCnrDefault.detailslatime; // Set default 3416 sprintf(szKey, "%sDirCnr.%lu.DetailsLATime", szPrefix, x); 3417 size = sizeof(BOOL); 3418 if (PrfQueryProfileData(fmprof, 3419 FM3Str, 3420 szKey, 3421 (PVOID) &localdcd.ds.detailslatime, 3422 &size)) 3423 { 3424 if (fDeleteState) 3425 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3426 } 3242 3243 sprintf(szKey, "%sDirCnr.%lu", szPrefix, x); 3244 LoadDetailsSwitches(szKey, &localdcd.ds); 3245 if (fDeleteState) 3246 WriteDetailsSwitches(szKey, NULL); 3427 3247 hwndDir = (HWND) WinSendMsg(hwndClient, 3428 3248 UM_SETDIR, … … 3445 3265 HWND_TOP, (ULONG) -1, NULL, NULL); 3446 3266 CopyPresParams(hwndPPSave, hwndC); 3447 RestorePresParams(hwndPPSave, "DirCnr");3267 RestorePresParams(hwndPPSave, PCSZ_DIRCNR); 3448 3268 } 3449 3269 sprintf(szKey, "%sDirCnr.%lu", szPrefix, x); … … 3544 3364 } // for 3545 3365 if (hwndPPSave) { 3546 SavePresParams(hwndPPSave, "DirCnr");3366 SavePresParams(hwndPPSave, PCSZ_DIRCNR); 3547 3367 WinDestroyWindow(hwndPPSave); 3548 3368 } … … 4860 4680 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4861 4681 sprintf(s, "%s.DirCnrView.%lu", szStateName, x); 4862 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4863 sprintf(s, "%s.DirCnr.%lu.DetailsLongname", szStateName, x); 4864 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4865 sprintf(s, "%s.DirCnr.%lu.DetailsSubject", szStateName, x); 4866 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4867 sprintf(s, "%s.DirCnr.%lu.DetailsSize", szStateName, x); 4868 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4869 sprintf(s, "%s.DirCnr.%lu.DetailsEA", szStateName, x); 4870 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4871 sprintf(s, "%s.DirCnr.%lu.DetailsAttr", szStateName, x); 4872 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4873 sprintf(s, "%s.DirCnr.%lu.DetailsIcon", szStateName, x); 4874 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4875 sprintf(s, "%s.DirCnr.%lu.DetailsLWDate", szStateName, x); 4876 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4877 sprintf(s, "%s.DirCnr.%lu.DetailsLWTime", szStateName, x); 4878 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4879 sprintf(s, "%s.DirCnr.%lu.DetailsLADate", szStateName, x); 4880 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4881 sprintf(s, "%s.DirCnr.%lu.DetailsLATime", szStateName, x); 4882 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4883 sprintf(s, "%s.DirCnr.%lu.DetailsCRDate", szStateName, x); 4884 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4885 sprintf(s, "%s.DirCnr.%lu.DetailsCRTime", szStateName, x); 4886 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4682 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 4683 4684 sprintf(s, "%s.DirCnr.%lu", szStateName, x); 4685 WriteDetailsSwitches(s, NULL); 4887 4686 sprintf(s, "%s.DirCnr.%lu.Backgroundcolor", szStateName, x); 4888 4687 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); -
trunk/dll/misc.c
r1398 r1400 54 54 28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate 55 55 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 56 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 57 08 Mar 09 GKY Additional strings move to PCSZs in init.c 58 08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code 56 59 57 60 ***********************************************************************/ … … 97 100 #include "subj.h" // Subject 98 101 #include "wrappers.h" // xDosSetPathInfo 99 #include " commafmt.h" // CommaFmtULL102 #include "i18nutil.h" // CommaFmtULL 100 103 #include "fortify.h" 101 104 #include "info.h" // driveflags … … 1314 1317 } 1315 1318 1316 VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS * pds)1319 VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS *pds) 1317 1320 { 1318 1321 ULONG size; … … 1392 1395 } 1393 1396 1397 VOID WriteDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS *pds) 1398 { 1399 CHAR s[CCHMAXPATH], *eos = s; 1400 1401 strcpy(s, keyroot); 1402 strcat(s, "."); 1403 eos = &s[strlen(s)]; 1404 strcpy(eos, "DetailsLongname"); 1405 PrfWriteProfileData(fmprof, appname, s, &pds->detailslongname, sizeof(BOOL)); 1406 strcpy(eos, "DetailsSubject"); 1407 PrfWriteProfileData(fmprof, appname, s, &pds->detailssubject, sizeof(BOOL)); 1408 strcpy(eos, "DetailsEA"); 1409 PrfWriteProfileData(fmprof, appname, s, &pds->detailsea, sizeof(BOOL)); 1410 strcpy(eos, "DetailsSize"); 1411 PrfWriteProfileData(fmprof, appname, s, &pds->detailssize, sizeof(BOOL)); 1412 strcpy(eos, "DetailsIcon"); 1413 PrfWriteProfileData(fmprof, appname, s, &pds->detailsicon, sizeof(BOOL)); 1414 strcpy(eos, "DetailsAttr"); 1415 PrfWriteProfileData(fmprof, appname, s, &pds->detailsattr, sizeof(BOOL)); 1416 strcpy(eos, "DetailsCRDate"); 1417 PrfWriteProfileData(fmprof, appname, s, &pds->detailscrdate, sizeof(BOOL)); 1418 strcpy(eos, "DetailsCRTime"); 1419 PrfWriteProfileData(fmprof, appname, s, &pds->detailscrtime, sizeof(BOOL)); 1420 strcpy(eos, "DetailsLWDate"); 1421 PrfWriteProfileData(fmprof, appname, s, &pds->detailslwdate, sizeof(BOOL)); 1422 strcpy(eos, "DetailsLWTime"); 1423 PrfWriteProfileData(fmprof, appname, s, &pds->detailslwtime, sizeof(BOOL)); 1424 strcpy(eos, "DetailsLADate"); 1425 PrfWriteProfileData(fmprof, appname, s, &pds->detailsladate, sizeof(BOOL)); 1426 strcpy(eos, "DetailsLATime"); 1427 PrfWriteProfileData(fmprof, appname, s, &pds->detailslatime, sizeof(BOOL)); 1428 strcpy(eos, "SubjectInLeftPane"); 1429 PrfWriteProfileData(fmprof, appname, s, &pds->fSubjectInLeftPane, sizeof(BOOL)); 1430 strcpy(eos, "SubjectLengthMax"); 1431 PrfWriteProfileData(fmprof, appname, s, &pds->fSubjectLengthMax, sizeof(BOOL)); 1432 strcpy(eos, "SubjectDisplayWidth"); 1433 PrfWriteProfileData(fmprof, appname, s, &pds->SubjectDisplayWidth, sizeof(ULONG)); 1434 } 1435 1436 1394 1437 HWND FindDirCnr(HWND hwndParent) 1395 1438 { … … 2180 2223 if (!strnicmp(pswb->aswentry[i].swctl.szSwtitle, "AV/2", 4) 2181 2224 || !stricmp(pswb->aswentry[i].swctl.szSwtitle, "File Manager/2") 2182 || !stricmp(pswb->aswentry[i].swctl.szSwtitle, "Collector")2225 || !stricmp(pswb->aswentry[i].swctl.szSwtitle, PCSZ_COLLECTOR) 2183 2226 || !strnicmp(pswb->aswentry[i].swctl.szSwtitle, "VTree", 5) 2184 2227 || !strnicmp(pswb->aswentry[i].swctl.szSwtitle, "VDir", 4) … … 2349 2392 #pragma alloc_text(MISC3,SetupCommandMenu,AdjustDetailsSwitches) 2350 2393 #pragma alloc_text(MISC3,ViewHelp,GetCmdSpec) 2351 #pragma alloc_text(MISC3,ExecFile,SetConditionalCascade,LoadDetailsSwitches )2394 #pragma alloc_text(MISC3,ExecFile,SetConditionalCascade,LoadDetailsSwitches,WriteDetailsSwitches) 2352 2395 #pragma alloc_text(MISC4,PortholeInit,CheckMenu,Broadcast,SetupWinList,SwitchCommand) 2353 2396 #pragma alloc_text(MISC6,DrawTargetEmphasis,EmphasizeButton) -
trunk/dll/misc.h
r1394 r1400 10 10 11 11 17 Jul 08 SHL Baseline 12 08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code 12 13 13 14 ***********************************************************************/ … … 51 52 VOID HeapThread(VOID * dummy); 52 53 BOOL IsFm2Window(HWND hwnd, BOOL chkTid); 53 VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS * pds); 54 VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS *pds); 55 VOID WriteDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS *pds); 54 56 VOID LoadLibPath(PSZ str, LONG len); 55 57 VOID OpenEdit(HWND hwnd); -
trunk/dll/mle.c
r1335 r1400 22 22 06 Jul 08 GKY Rework LoadThread logic with Steven's help 23 23 10 Dec 08 SHL Integrate exception handler support 24 08 Mar 09 GKY Additional strings move to PCSZs in init.c 24 25 25 26 ***********************************************************************/ … … 203 204 204 205 size = sizeof(WPSDefaultFtpRun); 205 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",206 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 206 207 "DefaultBrowserExe", WPSDefaultFtpRun, &size); 207 208 size = sizeof(WPSDefaultFtpRunDir); 208 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",209 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 209 210 "DefaultWorkingDir", WPSDefaultFtpRunDir, &size); 210 211 runemf2(SEPARATE | WINDOWED, 211 212 h, pszSrcFile, __LINE__, 212 213 WPSDefaultFtpRunDir, 213 fLibPathStrictFtpRun ? "SET LIBPATHSTRICT=TRUE": NULL,214 fLibPathStrictFtpRun ? pLibPathStrict : NULL, 214 215 "%s %s", WPSDefaultFtpRun, temp); 215 216 } … … 224 225 225 226 size = sizeof(WPSDefaultHttpRun); 226 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",227 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 227 228 "DefaultBrowserExe", WPSDefaultHttpRun, &size); 228 229 size = sizeof(WPSDefaultHttpRunDir); 229 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",230 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 230 231 "DefaultWorkingDir", WPSDefaultHttpRunDir, &size); 231 232 runemf2(SEPARATE | WINDOWED, 232 233 h, pszSrcFile, __LINE__, 233 234 WPSDefaultHttpRunDir, 234 fLibPathStrictHttpRun ? "SET LIBPATHSTRICT=TRUE": NULL,235 fLibPathStrictHttpRun ? pLibPathStrict : NULL, 235 236 "%s %s", WPSDefaultHttpRun, temp); 236 237 } -
trunk/dll/newview.c
r1398 r1400 36 36 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 37 37 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 38 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 39 08 Mar 09 GKY Additional strings move to PCSZs in init.c 38 40 39 41 ***********************************************************************/ … … 83 85 #include "chklist.h" // PopupMenu 84 86 #include "viewer.h" // StartMLEEditor 85 #include " commafmt.h" // commafmt87 #include "i18nutil.h" // commafmt 86 88 #include "getnames.h" // export_filename 87 89 #include "literal.h" // literal … … 1823 1825 PP_FONTNAMESIZE, 1824 1826 strlen(FNT_8HELVETICA) + 1, 1825 FNT_8HELVETICA);1827 (PVOID) FNT_8HELVETICA); 1826 1828 } 1827 1829 temphwnd = WinCreateWindow(hwndFrame, … … 1844 1846 PP_FONTNAMESIZE, 1845 1847 strlen(FNT_8HELVETICA) + 1, 1846 FNT_8HELVETICA);1848 (PVOID) FNT_8HELVETICA); 1847 1849 } 1848 1850 WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, ID_TIMER5, 1000L); … … 2469 2471 2470 2472 size = sizeof(WPSDefaultHttpRun); 2471 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",2473 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 2472 2474 "DefaultBrowserExe", WPSDefaultHttpRun, &size); 2473 2475 size = sizeof(WPSDefaultHttpRunDir); 2474 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",2476 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 2475 2477 "DefaultWorkingDir", WPSDefaultHttpRunDir, &size); 2476 2478 runemf2(SEPARATE | WINDOWED, 2477 2479 hwnd, pszSrcFile, __LINE__, 2478 2480 WPSDefaultHttpRunDir, 2479 fLibPathStrictHttpRun ? "SET LIBPATHSTRICT=TRUE": NULL,2481 fLibPathStrictHttpRun ? pLibPathStrict : NULL, 2480 2482 "%s %s", WPSDefaultHttpRun, urld->url); 2481 2483 } … … 2484 2486 hwnd, pszSrcFile, __LINE__, 2485 2487 httprundir, 2486 fLibPathStrictHttpRun ? "SET LIBPATHSTRICT=TRUE": NULL,2488 fLibPathStrictHttpRun ? pLibPathStrict : NULL, 2487 2489 "%s %s", httprun, urld->url); 2488 2490 } … … 2495 2497 2496 2498 size = sizeof(WPSDefaultFtpRun); 2497 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",2499 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 2498 2500 "DefaultBrowserExe", WPSDefaultFtpRun, &size); 2499 2501 size = sizeof(WPSDefaultFtpRunDir); 2500 PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",2502 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS, 2501 2503 "DefaultWorkingDir", WPSDefaultFtpRunDir, &size); 2502 2504 runemf2(SEPARATE | WINDOWED, 2503 2505 hwnd, pszSrcFile, __LINE__, 2504 2506 WPSDefaultFtpRunDir, 2505 fLibPathStrictFtpRun ? "SET LIBPATHSTRICT=TRUE": NULL,2507 fLibPathStrictFtpRun ? pLibPathStrict : NULL, 2506 2508 "%s %s", WPSDefaultFtpRun, urld->url); 2507 2509 } … … 2510 2512 hwnd, pszSrcFile, __LINE__, 2511 2513 ftprundir, 2512 fLibPathStrictFtpRun ? "SET LIBPATHSTRICT=TRUE": NULL,2514 fLibPathStrictFtpRun ? pLibPathStrict : NULL, 2513 2515 "%s %s", ftprun, urld->url); 2514 2516 } … … 2520 2522 hwnd, pszSrcFile, __LINE__, 2521 2523 mailrundir, 2522 fLibPathStrictMailRun ? "SET LIBPATHSTRICT=TRUE": NULL,2524 fLibPathStrictMailRun ? pLibPathStrict : NULL, 2523 2525 "%s %s", mailrun, urld->url); 2524 2526 } … … 2637 2639 PP_FONTNAMESIZE, 2638 2640 strlen(FNT_8HELVETICA) + 1, 2639 FNT_8HELVETICA);2641 (PVOID) FNT_8HELVETICA); 2640 2642 } 2641 2643 if (ad->hwndPopup) { -
trunk/dll/notebook.c
r1398 r1400 47 47 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 48 48 07 Feb 09 GKY Move repeated strings to PCSZs. 49 08 Mar 09 GKY Additional strings move to PCSZs in init.c 50 08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code 49 51 50 52 ***********************************************************************/ … … 2338 2340 } 2339 2341 dsDirCnrDefault.detailslongname = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLNAMES); 2340 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname",2341 &dsDirCnrDefault.detailslongname, sizeof(BOOL));2342 2342 dsDirCnrDefault.detailssubject = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSUBJECT); 2343 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject", 2344 &dsDirCnrDefault.detailssubject, sizeof(BOOL)); 2345 dsDirCnrDefault.detailsea = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSUBJECT); 2346 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA", 2347 &dsDirCnrDefault.detailsea, sizeof(BOOL)); 2343 dsDirCnrDefault.detailsea = WinQueryButtonCheckstate(hwnd, CFG5_SHOWEAS); 2348 2344 dsDirCnrDefault.detailssize = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSIZE); 2349 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize",2350 &dsDirCnrDefault.detailssize, sizeof(BOOL));2351 2345 dsDirCnrDefault.detailsicon = WinQueryButtonCheckstate(hwnd, CFG5_SHOWICON); 2352 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon",2353 &dsDirCnrDefault.detailsicon, sizeof(BOOL));2354 2346 dsDirCnrDefault.detailslwdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWDATE); 2355 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate",2356 &dsDirCnrDefault.detailslwdate, sizeof(BOOL));2357 2347 dsDirCnrDefault.detailslwtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWTIME); 2358 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime",2359 &dsDirCnrDefault.detailslwtime, sizeof(BOOL));2360 2348 dsDirCnrDefault.detailsladate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLADATE); 2361 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate",2362 &dsDirCnrDefault.detailsladate, sizeof(BOOL));2363 2349 dsDirCnrDefault.detailslatime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLATIME); 2364 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime",2365 &dsDirCnrDefault.detailslatime, sizeof(BOOL));2366 2350 dsDirCnrDefault.detailscrdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRDATE); 2367 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate",2368 &dsDirCnrDefault.detailscrdate, sizeof(BOOL));2369 2351 dsDirCnrDefault.detailscrtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRTIME); 2370 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime",2371 &dsDirCnrDefault.detailscrtime, sizeof(BOOL));2372 2352 dsDirCnrDefault.detailsattr = WinQueryButtonCheckstate(hwnd, CFG5_SHOWATTR); 2373 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr",2374 &dsDirCnrDefault.detailsattr, sizeof(BOOL));2375 2353 dsDirCnrDefault.fSubjectInLeftPane = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTINLEFTPANE); 2376 PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectInLeftPane",2377 &dsDirCnrDefault.fSubjectInLeftPane, sizeof(BOOL));2378 2354 dsDirCnrDefault.fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX); 2379 PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectLengthMax",2380 &dsDirCnrDefault.fSubjectLengthMax, sizeof(BOOL));2381 2355 *mask.prompt = 0; 2382 2356 PrfWriteProfileData(fmprof, appname, "DirFilter", &mask, sizeof(MASK)); … … 2392 2366 else 2393 2367 dsDirCnrDefault.SubjectDisplayWidth = 0; 2394 PrfWriteProfileData(fmprof, 2395 appname, "DirCnr.SubjectDisplayWidth", 2396 &dsDirCnrDefault.SubjectDisplayWidth, sizeof(ULONG)); 2397 } 2368 } 2369 WriteDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault); 2398 2370 break; 2399 2371 } … … 2629 2601 2630 2602 memset(&ds, 0, sizeof(ds)); 2631 LoadDetailsSwitches( "Collector", &ds);2603 LoadDetailsSwitches(PCSZ_COLLECTOR, &ds); 2632 2604 WinCheckButton(hwnd, CFG5_SHOWLNAMES, ds.detailslongname); 2633 2605 WinCheckButton(hwnd, CFG5_SHOWSUBJECT, ds.detailssubject); … … 2721 2693 memset(&ds, 0, sizeof(ds)); 2722 2694 ds.detailslongname = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLNAMES); 2723 PrfWriteProfileData(fmprof, appname, "Collector.DetailsLongname",2724 &ds.detailslongname, sizeof(BOOL));2725 2695 ds.detailssubject = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSUBJECT); 2726 PrfWriteProfileData(fmprof, appname, "Collector.DetailsSubject",2727 &ds.detailssubject, sizeof(BOOL));2728 2696 ds.detailsea = WinQueryButtonCheckstate(hwnd, CFG5_SHOWEAS); 2729 PrfWriteProfileData(fmprof, appname, "Collector.DetailsEA",2730 &ds.detailsea, sizeof(BOOL));2731 2697 ds.detailssize = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSIZE); 2732 PrfWriteProfileData(fmprof, appname, "Collector.DetailsSize",2733 &ds.detailssize, sizeof(BOOL));2734 2698 ds.detailsicon = WinQueryButtonCheckstate(hwnd, CFG5_SHOWICON); 2735 PrfWriteProfileData(fmprof, appname, "Collector.DetailsIcon",2736 &ds.detailsicon, sizeof(BOOL));2737 2699 ds.detailslwdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWDATE); 2738 PrfWriteProfileData(fmprof, appname, "Collector.DetailsLWDate",2739 &ds.detailslwdate, sizeof(BOOL));2740 2700 ds.detailslwtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWTIME); 2741 PrfWriteProfileData(fmprof, appname, "Collector.DetailsLWTime",2742 &ds.detailslwtime, sizeof(BOOL));2743 2701 ds.detailsladate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLADATE); 2744 PrfWriteProfileData(fmprof, appname, "Collector.DetailsLADate",2745 &ds.detailsladate, sizeof(BOOL));2746 2702 ds.detailslatime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLATIME); 2747 PrfWriteProfileData(fmprof, appname, "Collector.DetailsLATime",2748 &ds.detailslatime, sizeof(BOOL));2749 2703 ds.detailscrdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRDATE); 2750 PrfWriteProfileData(fmprof, appname, "Collector.DetailsCRDate",2751 &ds.detailscrdate, sizeof(BOOL));2752 2704 ds.detailscrtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRTIME); 2753 PrfWriteProfileData(fmprof, appname, "Collector.DetailsCRTime",2754 &ds.detailscrtime, sizeof(BOOL));2755 2705 ds.detailsattr = WinQueryButtonCheckstate(hwnd, CFG5_SHOWATTR); 2756 PrfWriteProfileData(fmprof, appname, "Collector.DetailsAttr",2757 &ds.detailsattr, sizeof(BOOL));2758 2706 ds.fSubjectInLeftPane = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTINLEFTPANE); 2759 PrfWriteProfileData(fmprof, appname, "Collector.SubjectInLeftPane",2760 &ds.fSubjectInLeftPane, sizeof(BOOL));2761 2707 ds.fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX); 2762 PrfWriteProfileData(fmprof, appname, "Collector.SubjectLengthMax",2763 &ds.fSubjectLengthMax, sizeof(BOOL));2764 2708 *mask.prompt = 0; 2765 2709 PrfWriteProfileData(fmprof, … … 2776 2720 else 2777 2721 ds.SubjectDisplayWidth = 0; 2778 PrfWriteProfileData(fmprof, 2779 appname, "Collector.SubjectDisplayWidth", 2780 &ds.SubjectDisplayWidth, sizeof(ULONG)); 2781 } 2722 } 2723 WriteDetailsSwitches(PCSZ_COLLECTOR, &ds); 2782 2724 } 2783 2725 break; … … 3094 3036 appname, 3095 3037 "Collector.Fontnamesize", 3096 FNT_8HELVETICA,3038 (PVOID) FNT_8HELVETICA, 3097 3039 strlen(FNT_8HELVETICA) + 1); 3098 3040 } … … 3151 3093 //fixme to allow user to change presparams 1-10-09 GKY 3152 3094 PrfWriteProfileData(fmprof, appname, "Collector.Fontnamesize", 3153 FNT_8HELVETICA,3095 (PVOID) FNT_8HELVETICA, 3154 3096 strlen(FNT_8HELVETICA) + 1); 3155 3097 } … … 3585 3527 } 3586 3528 // Save new details settings and refresh windows 3587 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname", 3588 &dsDirCnrDefault.detailslongname, sizeof(BOOL)); 3589 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject", 3590 &dsDirCnrDefault.detailssubject, sizeof(BOOL)); 3591 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA", 3592 &dsDirCnrDefault.detailsea, sizeof(BOOL)); 3593 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize", 3594 &dsDirCnrDefault.detailssize, sizeof(BOOL)); 3595 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon", 3596 &dsDirCnrDefault.detailsicon, sizeof(BOOL)); 3597 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate", 3598 &dsDirCnrDefault.detailslwdate, sizeof(BOOL)); 3599 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime", 3600 &dsDirCnrDefault.detailslwtime, sizeof(BOOL)); 3601 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate", 3602 &dsDirCnrDefault.detailsladate, sizeof(BOOL)); 3603 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime", 3604 &dsDirCnrDefault.detailslatime, sizeof(BOOL)); 3605 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate", 3606 &dsDirCnrDefault.detailscrdate, sizeof(BOOL)); 3607 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime", 3608 &dsDirCnrDefault.detailscrtime, sizeof(BOOL)); 3609 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr", 3610 &dsDirCnrDefault.detailsattr, sizeof(BOOL)); 3529 WriteDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault); 3611 3530 if (hwndMain) { 3612 3531 // Save state and restore to refresh windows with new settings -
trunk/dll/presparm.c
r1348 r1400 13 13 22 Nov 07 GKY Use CopyPresParams to fix presparam inconsistencies in menus 14 14 10 Dec 07 GKY Updated CopyPresParams to copy all parameter types 15 08 Mar 09 GKY Additional strings move to PCSZs in init.c 15 16 16 17 ***********************************************************************/ … … 373 374 374 375 VOID SetPresParams(HWND hwnd, RGB2 * back, RGB2 * fore, RGB2 * border, 375 CHAR *font)376 PCSZ font) 376 377 { 377 378 if (font) … … 397 398 #endif 398 399 399 VOID PresParamChanged(HWND hwnd, CHAR *keyroot, MPARAM mp1, MPARAM mp2)400 VOID PresParamChanged(HWND hwnd, PCSZ keyroot, MPARAM mp1, MPARAM mp2) 400 401 { 401 402 ULONG AttrFound, AttrValue[64], cbRetLen; … … 435 436 } 436 437 437 VOID RestorePresParams(HWND hwnd, CHAR *keyroot)438 VOID RestorePresParams(HWND hwnd, PCSZ keyroot) 438 439 { 439 440 CHAR s[81]; … … 475 476 * Save the presentation parameters used by RestorePresParams 476 477 */ 477 VOID SavePresParams(HWND hwnd, CHAR *keyroot)478 VOID SavePresParams(HWND hwnd, PCSZ keyroot) 478 479 { 479 480 -
trunk/dll/presparm.h
r1241 r1400 10 10 11 11 Change log 12 08 Mar 09 GKY Additional strings move to PCSZs in init.c (Delcare changes to PCSZ) 12 13 13 14 ***********************************************************************/ … … 17 18 18 19 VOID CopyPresParams(HWND target, HWND source); 19 VOID PresParamChanged(HWND hwnd, CHAR *keyroot, MPARAM mp1, MPARAM mp2);20 VOID RestorePresParams(HWND hwnd, CHAR *keyroot);21 VOID SavePresParams(HWND hwnd, CHAR *keyroot);20 VOID PresParamChanged(HWND hwnd, PCSZ keyroot, MPARAM mp1, MPARAM mp2); 21 VOID RestorePresParams(HWND hwnd, PCSZ keyroot); 22 VOID SavePresParams(HWND hwnd, PCSZ keyroot); 22 23 #ifdef INCL_GPI 23 24 VOID SetPresParams(HWND hwnd, RGB2 * back, RGB2 * fore, RGB2 * border, 24 CHAR *font);25 PCSZ font); 25 26 #endif 26 27 -
trunk/dll/rename.c
r1397 r1400 16 16 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 17 17 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 18 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 18 19 19 20 ***********************************************************************/ … … 38 39 #include "valid.h" // TestFDates 39 40 #include "mkdir.h" // SetDir 40 #include " commafmt.h" // CommaFmtULL41 #include "i18nutil.h" // CommaFmtULL 41 42 #include "strips.h" // bstrip 42 43 #include "info.h" // driveflags -
trunk/dll/saveclip.c
r1398 r1400 28 28 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 29 29 07 Feb 09 GKY Move repeated strings to PCSZs. 30 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 30 31 31 32 ***********************************************************************/ … … 57 58 #include "strips.h" // bstrip 58 59 #include "misc.h" // CheckDriveSpaceAvail 59 #include " commafmt.h" // CommaFmtULL60 #include "i18nutil.h" // CommaFmtULL 60 61 #include "valid.h" // IsRoot 61 62 #include "dirs.h" // save_dir2 -
trunk/dll/seeall.c
r1398 r1400 45 45 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 46 46 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 47 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 48 08 Mar 09 GKY Additional strings move to PCSZs in init.c 47 49 48 50 ***********************************************************************/ … … 101 103 #include "collect.h" // StartCollector 102 104 #include "subj.h" // Subject 103 #include " commafmt.h" // commafmt105 #include "i18nutil.h" // commafmt 104 106 #include "literal.h" // wildcard 105 107 #include "wrappers.h" // xDosFindNext … … 3332 3334 WinSetPresParam(pAD->hwndPopup, PP_FONTNAMESIZE, 3333 3335 strlen(FNT_8HELVETICA) + 1, 3334 FNT_8HELVETICA);3336 (PVOID) FNT_8HELVETICA); 3335 3337 SetConditionalCascade(pAD->hwndPopup, 3336 3338 IDM_DELETESUBMENU, -
trunk/dll/treecnr.c
r1398 r1400 62 62 07 Feb 09 GKY Add *DateFormat functions to format dates based on locale 63 63 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 64 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 65 08 Mar 09 GKY Additional strings move to PCSZs in init.c 66 08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code 64 67 65 68 ***********************************************************************/ … … 122 125 #include "newview.h" // StartViewer 123 126 #include "walkem.h" // WalkAllDlgProc 124 #include " commafmt.h" // CommaFmtULL127 #include "i18nutil.h" // CommaFmtULL 125 128 #include "wrappers.h" // xDosFindFirst 126 129 #include "systemf.h" // runemf2 … … 181 184 WinSetPresParam(hwnd, PP_FONTNAMESIZE, 182 185 strlen(FNT_8TIMESNEWROMAN) + 1, 183 FNT_8TIMESNEWROMAN);186 (PVOID) FNT_8TIMESNEWROMAN); 184 187 return rc; 185 188 } … … 1115 1118 1116 1119 case WM_PRESPARAMCHANGED: 1117 PresParamChanged(hwnd, "TreeCnr", mp1, mp2);1120 PresParamChanged(hwnd, PCSZ_TREECNR, mp1, mp2); 1118 1121 break; 1119 1122 … … 1272 1275 # endif 1273 1276 1274 RestorePresParams(hwnd, "TreeCnr");1277 RestorePresParams(hwnd, PCSZ_TREECNR); 1275 1278 memset(&cnri, 0, sizeof(CNRINFO)); 1276 1279 cnri.cb = sizeof(CNRINFO); … … 2309 2312 else { 2310 2313 if (!PostMsg(dcd->hwndObject, UM_COMMAND, mp1, mp2)) { 2311 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");2314 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 2312 2315 FreeListInfo((LISTINFO *) mp1); 2313 2316 } … … 2600 2603 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2601 2604 NULL, NULL, 2602 "%s", "MINILVM.EXE");2605 "%s", PCSZ_MINILVMEXE); 2603 2606 break; 2604 2607 … … 2606 2609 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2607 2610 NULL, NULL, 2608 "%s", "DFSOS2.EXE");2611 "%s", PCSZ_DFSOS2EXE); 2609 2612 break; 2610 2613 … … 2612 2615 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2613 2616 NULL, NULL, 2614 "%s", "LVMGUI.CMD");2617 "%s", PCSZ_LVMGUICMD); 2615 2618 break; 2616 2619 … … 2618 2621 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2619 2622 NULL, NULL, 2620 "%s", "FDISKPM.EXE");2623 "%s", PCSZ_FDISKPMEXE); 2621 2624 break; 2622 2625 … … 2624 2627 runemf2(SEPARATE | WINDOWED | BACKGROUND | MINIMIZED | WAIT, 2625 2628 HWND_DESKTOP, pszSrcFile, __LINE__, NULL, NULL, 2626 "%s ", "LVM.EXE/RediscoverPRM");2629 "%s %s", PCSZ_LVMEXE, "/RediscoverPRM"); 2627 2630 PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID); 2628 2631 break; … … 2993 2996 *li->targetpath = 0; 2994 2997 if (!PostMsg(dcd->hwndObject, action, MPFROMP(li), MPVOID)) { 2995 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");2998 Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG); 2996 2999 FreeListInfo(li); 2997 3000 } -
trunk/dll/viewinf.c
r1398 r1400 19 19 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 20 20 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 21 08 Mar 09 GKY Additional strings move to PCSZs in init.c 21 22 22 23 ***********************************************************************/ … … 260 261 PP_FONTNAMESIZE, 261 262 strlen(FNT_10SYSTEMMONOTEXT) + 1, 262 FNT_10SYSTEMMONOTEXT);263 (PVOID) FNT_10SYSTEMMONOTEXT); 263 264 } 264 265 WinSetWindowText(hwnd, GetPString(IDS_VIEWHELPFILESTEXT)); -
trunk/dll/walkem.c
r1398 r1400 1041 1041 if (rc) 1042 1042 Dos_Error(MB_CANCEL, rc, hwnd, pszSrcFile, __LINE__, 1043 " xDosFindFirst");1043 "DosFindFirst"); 1044 1044 else if (~findbuf.attrFile & FILE_DIRECTORY) 1045 1045 Runtime_Error(pszSrcFile, __LINE__, "not a directory"); … … 1090 1090 if (rc) 1091 1091 Dos_Error(MB_CANCEL, rc, hwnd, pszSrcFile, __LINE__, 1092 " xDosFindFirst");1092 "DosFindFirst"); 1093 1093 else if (~findbuf.attrFile & FILE_DIRECTORY) 1094 1094 Runtime_Error(pszSrcFile, __LINE__, "not a directory"); -
trunk/dll/winlist.c
r1228 r1400 12 12 22 Jul 06 SHL Check more run time errors 13 13 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 14 08 Mar 09 GKY Additional strings move to PCSZs in init.c 14 15 15 16 ***********************************************************************/ … … 104 105 !strnicmp(pswb->aswentry[i].swctl.szSwtitle, "AV/2", 4) || 105 106 !stricmp(pswb->aswentry[i].swctl.szSwtitle, "File Manager/2") 106 || !stricmp(pswb->aswentry[i].swctl.szSwtitle, "Collector")107 || !stricmp(pswb->aswentry[i].swctl.szSwtitle, PCSZ_COLLECTOR) 107 108 || !strnicmp(pswb->aswentry[i].swctl.szSwtitle, "VTree", 5) 108 109 || !strnicmp(pswb->aswentry[i].swctl.szSwtitle, "VDir", 4)
Note:
See TracChangeset
for help on using the changeset viewer.
