Changeset 997 for trunk/dll/notebook.c


Ignore:
Timestamp:
Mar 8, 2008, 9:27:18 PM (17 years ago)
Author:
John Small
Message:

Ticket 230: Make all INI keys for default directory container settings use the
"DirCnr." prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r985 r997  
    18121812    }
    18131813    detailslongname = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLNAMES);
    1814     PrfWriteProfileData(fmprof, appname, "DetailsLongname",
     1814    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname",
    18151815                        &detailslongname, sizeof(BOOL));
    18161816    detailssubject = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSUBJECT);
    1817     PrfWriteProfileData(fmprof, appname, "DetailsSubject",
     1817    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject",
    18181818                        &detailssubject, sizeof(BOOL));
    1819     PrfWriteProfileData(fmprof, appname, "DetailsEA",
     1819    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA",
    18201820                        &detailsea, sizeof(BOOL));
    18211821    detailssize = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSIZE);
    1822     PrfWriteProfileData(fmprof, appname, "DetailsSize",
     1822    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize",
    18231823                        &detailssize, sizeof(BOOL));
    18241824    detailsicon = WinQueryButtonCheckstate(hwnd, CFG5_SHOWICON);
    1825     PrfWriteProfileData(fmprof, appname, "DetailsIcon",
     1825    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon",
    18261826                        &detailsicon, sizeof(BOOL));
    18271827    detailslwdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWDATE);
    1828     PrfWriteProfileData(fmprof, appname, "DetailsLWDate",
     1828    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate",
    18291829                        &detailslwdate, sizeof(BOOL));
    18301830    detailslwtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWTIME);
    1831     PrfWriteProfileData(fmprof, appname, "DetailsLWTime",
     1831    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime",
    18321832                        &detailslwtime, sizeof(BOOL));
    18331833    detailsladate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLADATE);
    1834     PrfWriteProfileData(fmprof, appname, "DetailsLADate",
     1834    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate",
    18351835                        &detailsladate, sizeof(BOOL));
    18361836    detailslatime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLATIME);
    1837     PrfWriteProfileData(fmprof, appname, "DetailsLATime",
     1837    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime",
    18381838                        &detailslatime, sizeof(BOOL));
    18391839    detailscrdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRDATE);
    1840     PrfWriteProfileData(fmprof, appname, "DetailsCRDate",
     1840    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate",
    18411841                        &detailscrdate, sizeof(BOOL));
    18421842    detailscrtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRTIME);
    1843     PrfWriteProfileData(fmprof, appname, "DetailsCRTime",
     1843    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime",
    18441844                        &detailscrtime, sizeof(BOOL));
    18451845    detailsattr = WinQueryButtonCheckstate(hwnd, CFG5_SHOWATTR);
    1846     PrfWriteProfileData(fmprof, appname, "DetailsAttr",
     1846    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr",
    18471847                        &detailsattr, sizeof(BOOL));
    18481848    fSubjectInLeftPane = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTINLEFTPANE);
    1849     PrfWriteProfileData(fmprof, appname, "SubjectInLeftPane",
     1849    PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectInLeftPane",
    18501850                        &fSubjectInLeftPane, sizeof(BOOL));
    18511851    fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX);
    1852     PrfWriteProfileData(fmprof, appname, "SubjectLengthMax",
     1852    PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectLengthMax",
    18531853                        &fSubjectLengthMax, sizeof(BOOL));
    18541854    *mask.prompt = 0;
     
    18661866          SubjectDisplayWidth = 0;
    18671867        PrfWriteProfileData(fmprof,
    1868                             appname, "SubjectDisplayWidth",
     1868                            appname, "DirCnr.SubjectDisplayWidth",
    18691869                            &SubjectDisplayWidth, sizeof(ULONG));
    18701870    }
     
    29562956    }
    29572957    // Save new details settings and refresh windows
    2958     PrfWriteProfileData(fmprof, appname, "DetailsLongname",
     2958    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname",
    29592959                        &detailslongname, sizeof(BOOL));
    2960     PrfWriteProfileData(fmprof, appname, "DetailsSubject",
     2960    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject",
    29612961                        &detailssubject, sizeof(BOOL));
    2962     PrfWriteProfileData(fmprof, appname, "DetailsEA",
     2962    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA",
    29632963                        &detailsea, sizeof(BOOL));
    2964     PrfWriteProfileData(fmprof, appname, "DetailsSize",
     2964    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize",
    29652965                        &detailssize, sizeof(BOOL));
    2966     PrfWriteProfileData(fmprof, appname, "DetailsIcon",
     2966    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon",
    29672967                        &detailsicon, sizeof(BOOL));
    2968     PrfWriteProfileData(fmprof, appname, "DetailsLWDate",
     2968    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate",
    29692969                        &detailslwdate, sizeof(BOOL));
    2970     PrfWriteProfileData(fmprof, appname, "DetailsLWTime",
     2970    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime",
    29712971                        &detailslwtime, sizeof(BOOL));
    2972     PrfWriteProfileData(fmprof, appname, "DetailsLADate",
     2972    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate",
    29732973                        &detailsladate, sizeof(BOOL));
    2974     PrfWriteProfileData(fmprof, appname, "DetailsLATime",
     2974    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime",
    29752975                        &detailslatime, sizeof(BOOL));
    2976     PrfWriteProfileData(fmprof, appname, "DetailsCRDate",
     2976    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate",
    29772977                        &detailscrdate, sizeof(BOOL));
    2978     PrfWriteProfileData(fmprof, appname, "DetailsCRTime",
     2978    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime",
    29792979                        &detailscrtime, sizeof(BOOL));
    2980     PrfWriteProfileData(fmprof, appname, "DetailsAttr",
     2980    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr",
    29812981                        &detailsattr, sizeof(BOOL));
    29822982    if (hwndMain) {
     
    29862986        PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2));
    29872987        // Restore saved state
    2988 //      PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);
    29892988        PostMsg(MainObjectHwnd, UM_RESTORE, GetPString(IDS_FM2TEMPTEXT), MPVOID);
    29902989      }
Note: See TracChangeset for help on using the changeset viewer.