Changeset 1400 for trunk/dll/misc.c


Ignore:
Timestamp:
Mar 8, 2009, 6:50:25 PM (16 years ago)
Author:
Gregg Young
Message:

Remainder of changes to rename commafmt.h/c (Ticket 28, 82); Additional strings moved to PCSZs in init.c (Ticket 6); Added WriteDetailsSwitches used it and LoadDetailsSwitches to consolidate inline code (Ticket 343, 344)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r1398 r1400  
    5454  28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate
    5555  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
    5659
    5760***********************************************************************/
     
    97100#include "subj.h"                       // Subject
    98101#include "wrappers.h"                   // xDosSetPathInfo
    99 #include "commafmt.h"                   // CommaFmtULL
     102#include "i18nutil.h"                   // CommaFmtULL
    100103#include "fortify.h"
    101104#include "info.h"                       // driveflags
     
    13141317}
    13151318
    1316 VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS * pds)
     1319VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS *pds)
    13171320{
    13181321  ULONG size;
     
    13921395}
    13931396
     1397VOID 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
    13941437HWND FindDirCnr(HWND hwndParent)
    13951438{
     
    21802223          if (!strnicmp(pswb->aswentry[i].swctl.szSwtitle, "AV/2", 4)
    21812224              || !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)
    21832226              || !strnicmp(pswb->aswentry[i].swctl.szSwtitle, "VTree", 5)
    21842227              || !strnicmp(pswb->aswentry[i].swctl.szSwtitle, "VDir", 4)
     
    23492392#pragma alloc_text(MISC3,SetupCommandMenu,AdjustDetailsSwitches)
    23502393#pragma alloc_text(MISC3,ViewHelp,GetCmdSpec)
    2351 #pragma alloc_text(MISC3,ExecFile,SetConditionalCascade,LoadDetailsSwitches)
     2394#pragma alloc_text(MISC3,ExecFile,SetConditionalCascade,LoadDetailsSwitches,WriteDetailsSwitches)
    23522395#pragma alloc_text(MISC4,PortholeInit,CheckMenu,Broadcast,SetupWinList,SwitchCommand)
    23532396#pragma alloc_text(MISC6,DrawTargetEmphasis,EmphasizeButton)
Note: See TracChangeset for help on using the changeset viewer.