Changeset 923 for trunk/dll/misc.c


Ignore:
Timestamp:
Jan 15, 2008, 1:41:54 AM (18 years ago)
Author:
John Small
Message:

Updated for ticket 150: fixed/improved save and restore of the state
of directory containers when FM/2 is closed and re-opened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r922 r923  
    10011001                           DIRCNRDATA * dcd, BOOL compare)
    10021002{
    1003   CHAR s[CCHMAXPATH], *eos = s;
     1003// JBS  CHAR s[CCHMAXPATH], *eos = s;
    10041004  BOOL *bool = NULL;
    10051005
    1006   *s = 0;
    1007   if (keyroot) {
    1008     strcpy(s, keyroot);
    1009     strcat(s, ".");
    1010     eos = &s[strlen(s)];
    1011   }
     1006// JBS  *s = 0;
     1007// JBS  if (keyroot) {
     1008// JBS    strcpy(s, keyroot);
     1009// JBS    strcat(s, ".");
     1010// JBS    eos = &s[strlen(s)];
     1011// JBS  }
    10121012  switch (cmd) {
    10131013  case IDM_SHOWLNAMES:
    10141014    bool = dcd ? &dcd->detailslongname : &detailslongname;
    1015     strcpy(eos, "DetailsLongname");
     1015// JBS    strcpy(eos, "DetailsLongname");
    10161016    break;
    10171017  case IDM_SHOWSUBJECT:
    10181018    bool = dcd ? &dcd->detailssubject : &detailssubject;
    1019     strcpy(eos, "DetailsSubject");
     1019// JBS    strcpy(eos, "DetailsSubject");
    10201020    break;
    10211021  case IDM_SHOWEAS:
    10221022    bool = dcd ? &dcd->detailsea : &detailsea;
    1023     strcpy(eos, "DetailsEA");
     1023// JBS    strcpy(eos, "DetailsEA");
    10241024    break;
    10251025  case IDM_SHOWSIZE:
    10261026    bool = dcd ? &dcd->detailssize : &detailssize;
    1027     strcpy(eos, "DetailsSize");
     1027// JBS    strcpy(eos, "DetailsSize");
    10281028    break;
    10291029  case IDM_SHOWICON:
    10301030    bool = dcd ? &dcd->detailsicon : &detailsicon;
    1031     strcpy(eos, "DetailsIcon");
     1031// JBS    strcpy(eos, "DetailsIcon");
    10321032    break;
    10331033  case IDM_SHOWLWDATE:
    10341034    bool = dcd ? &dcd->detailslwdate : &detailslwdate;
    1035     strcpy(eos, "DetailsLWDate");
     1035// JBS    strcpy(eos, "DetailsLWDate");
    10361036    break;
    10371037  case IDM_SHOWLWTIME:
    10381038    bool = dcd ? &dcd->detailslwtime : &detailslwtime;
    1039     strcpy(eos, "DetailsLWTime");
     1039// JBS    strcpy(eos, "DetailsLWTime");
    10401040    break;
    10411041  case IDM_SHOWLADATE:
    10421042    bool = dcd ? &dcd->detailsladate : &detailsladate;
    1043     strcpy(eos, "DetailsLADate");
     1043// JBS    strcpy(eos, "DetailsLADate");
    10441044    break;
    10451045  case IDM_SHOWLATIME:
    10461046    bool = dcd ? &dcd->detailslatime : &detailslatime;
    1047     strcpy(eos, "DetailsLATime");
     1047// JBS    strcpy(eos, "DetailsLATime");
    10481048    break;
    10491049  case IDM_SHOWCRDATE:
    10501050    bool = dcd ? &dcd->detailscrdate : &detailscrdate;
    1051     strcpy(eos, "DetailsCRDate");
     1051// JBS    strcpy(eos, "DetailsCRDate");
    10521052    break;
    10531053  case IDM_SHOWCRTIME:
    10541054    bool = dcd ? &dcd->detailscrtime : &detailscrtime;
    1055     strcpy(eos, "DetailsCRTime");
     1055// JBS    strcpy(eos, "DetailsCRTime");
    10561056    break;
    10571057  case IDM_SHOWATTR:
    10581058    bool = dcd ? &dcd->detailsattr : &detailsattr;
    1059     strcpy(eos, "DetailsAttr");
     1059// JBS    strcpy(eos, "DetailsAttr");
    10601060    break;
    10611061  default:
     
    10661066  if (bool)
    10671067    *bool = *bool ? FALSE : TRUE;
    1068   if (*s && bool)
    1069     PrfWriteProfileData(fmprof, appname, s, bool, sizeof(BOOL));
     1068// JBS  if (*s && bool)
     1069// JBS    PrfWriteProfileData(fmprof, appname, s, bool, sizeof(BOOL));
    10701070  if (hwnd)
    10711071    AdjustCnrColsForPref(hwnd, directory, dcd, compare);
     
    12141214  BOOL *bool;
    12151215
    1216   *s = 0;
    1217   if (keyroot) {
     1216// JBS - No calls to LoadDetailsSwitches have a NULL keyroot.
     1217//  *s = 0;
     1218//  if (keyroot) {
    12181219    strcpy(s, keyroot);
    12191220    strcat(s, ".");
    12201221    eos = &s[strlen(s)];
    1221   }
     1222//  }
    12221223  strcpy(eos, "DetailsLongname");
    12231224  if (dcd)
Note: See TracChangeset for help on using the changeset viewer.