Changeset 923 for trunk/dll/notebook.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/notebook.c

    r922 r923  
    17491749    PrfWriteProfileData(fmprof, appname, "DetailsLongname",
    17501750                        &detailslongname, sizeof(BOOL));
    1751     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname",
    1752                         &detailslongname, sizeof(BOOL));
     1751// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname",
     1752// JBS                  &detailslongname, sizeof(BOOL));
    17531753    detailssubject = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSUBJECT);
    17541754    PrfWriteProfileData(fmprof, appname, "DetailsSubject",
    17551755                        &detailssubject, sizeof(BOOL));
    1756     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject",
    1757                         &detailssubject, sizeof(BOOL));
     1756// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject",
     1757// JBS                  &detailssubject, sizeof(BOOL));
    17581758    detailsea = WinQueryButtonCheckstate(hwnd, CFG5_SHOWEAS);
    17591759    PrfWriteProfileData(fmprof, appname, "DetailsEA",
    17601760                        &detailsea, sizeof(BOOL));
    1761     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA",
    1762                         &detailsea, sizeof(BOOL));
     1761// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA",
     1762// JBS                  &detailsea, sizeof(BOOL));
    17631763    detailssize = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSIZE);
    17641764    PrfWriteProfileData(fmprof, appname, "DetailsSize",
    17651765                        &detailssize, sizeof(BOOL));
    1766     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize",
    1767                         &detailssize, sizeof(BOOL));
     1766// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize",
     1767// JBS                  &detailssize, sizeof(BOOL));
    17681768    detailsicon = WinQueryButtonCheckstate(hwnd, CFG5_SHOWICON);
    17691769    PrfWriteProfileData(fmprof, appname, "DetailsIcon",
    17701770                        &detailsicon, sizeof(BOOL));
    1771     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon",
    1772                         &detailsicon, sizeof(BOOL));
     1771// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon",
     1772// JBS                  &detailsicon, sizeof(BOOL));
    17731773    detailslwdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWDATE);
    17741774    PrfWriteProfileData(fmprof, appname, "DetailsLWDate",
    17751775                        &detailslwdate, sizeof(BOOL));
    1776     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate",
    1777                         &detailslwdate, sizeof(BOOL));
     1776// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate",
     1777// JBS                  &detailslwdate, sizeof(BOOL));
    17781778    detailslwtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWTIME);
    17791779    PrfWriteProfileData(fmprof, appname, "DetailsLWTime",
    17801780                        &detailslwtime, sizeof(BOOL));
    1781     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime",
    1782                         &detailslwtime, sizeof(BOOL));
     1781// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime",
     1782// JBS                  &detailslwtime, sizeof(BOOL));
    17831783    detailsladate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLADATE);
    17841784    PrfWriteProfileData(fmprof, appname, "DetailsLADate",
    17851785                        &detailsladate, sizeof(BOOL));
    1786     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate",
    1787                         &detailsladate, sizeof(BOOL));
     1786// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate",
     1787// JBS                  &detailsladate, sizeof(BOOL));
    17881788    detailslatime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLATIME);
    17891789    PrfWriteProfileData(fmprof, appname, "DetailsLATime",
    17901790                        &detailslatime, sizeof(BOOL));
    1791     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime",
    1792                         &detailslatime, sizeof(BOOL));
     1791// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime",
     1792// JBS                  &detailslatime, sizeof(BOOL));
    17931793    detailscrdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRDATE);
    17941794    PrfWriteProfileData(fmprof, appname, "DetailsCRDate",
    17951795                        &detailscrdate, sizeof(BOOL));
    1796     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate",
    1797                         &detailscrdate, sizeof(BOOL));
     1796// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate",
     1797// JBS                  &detailscrdate, sizeof(BOOL));
    17981798    detailscrtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRTIME);
    17991799    PrfWriteProfileData(fmprof, appname, "DetailsCRTime",
    18001800                        &detailscrtime, sizeof(BOOL));
    1801     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime",
    1802                         &detailscrtime, sizeof(BOOL));
     1801// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime",
     1802// JBS                  &detailscrtime, sizeof(BOOL));
    18031803    detailsattr = WinQueryButtonCheckstate(hwnd, CFG5_SHOWATTR);
    18041804    PrfWriteProfileData(fmprof, appname, "DetailsAttr",
    18051805                        &detailsattr, sizeof(BOOL));
    1806     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr",
    1807                         &detailsattr, sizeof(BOOL));
     1806// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr",
     1807// JBS                  &detailsattr, sizeof(BOOL));
    18081808    fSubjectInLeftPane = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTINLEFTPANE);
    18091809    PrfWriteProfileData(fmprof, appname, "SubjectInLeftPane",
    18101810                        &fSubjectInLeftPane, sizeof(BOOL));
    1811     PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectInLeftPane",
    1812                         &fSubjectInLeftPane, sizeof(BOOL));
     1811// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectInLeftPane",
     1812// JBS                  &fSubjectInLeftPane, sizeof(BOOL));
    18131813    fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX);
    18141814    PrfWriteProfileData(fmprof, appname, "SubjectLengthMax",
    18151815                        &fSubjectLengthMax, sizeof(BOOL));
    1816     PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectLengthMax",
    1817                         &fSubjectLengthMax, sizeof(BOOL));
     1816// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectLengthMax",
     1817// JBS                  &fSubjectLengthMax, sizeof(BOOL));
    18181818    *mask.prompt = 0;
    18191819    PrfWriteProfileData(fmprof, appname, "DirFilter", &mask, sizeof(MASK));
     
    29352935    PrfWriteProfileData(fmprof, appname, "DetailsLongname",
    29362936                        &detailslongname, sizeof(BOOL));
    2937     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname",
    2938                         &detailslongname, sizeof(BOOL));
     2937// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname",
     2938// JBS                  &detailslongname, sizeof(BOOL));
    29392939    PrfWriteProfileData(fmprof, appname, "DetailsSubject",
    29402940                        &detailssubject, sizeof(BOOL));
    2941     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject",
    2942                         &detailssubject, sizeof(BOOL));
     2941// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject",
     2942// JBS                  &detailssubject, sizeof(BOOL));
    29432943    PrfWriteProfileData(fmprof, appname, "DetailsEA",
    29442944                        &detailsea, sizeof(BOOL));
    2945     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA",
    2946                         &detailsea, sizeof(BOOL));
     2945// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA",
     2946// JBS                  &detailsea, sizeof(BOOL));
    29472947    PrfWriteProfileData(fmprof, appname, "DetailsSize",
    29482948                        &detailssize, sizeof(BOOL));
    2949     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize",
    2950                         &detailssize, sizeof(BOOL));
     2949// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize",
     2950// JBS                  &detailssize, sizeof(BOOL));
    29512951    PrfWriteProfileData(fmprof, appname, "DetailsIcon",
    29522952                        &detailsicon, sizeof(BOOL));
    2953     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon",
    2954                         &detailsicon, sizeof(BOOL));
     2953// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon",
     2954// JBS                  &detailsicon, sizeof(BOOL));
    29552955    PrfWriteProfileData(fmprof, appname, "DetailsLWDate",
    29562956                        &detailslwdate, sizeof(BOOL));
    2957     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate",
    2958                         &detailslwdate, sizeof(BOOL));
     2957// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate",
     2958// JBS                  &detailslwdate, sizeof(BOOL));
    29592959    PrfWriteProfileData(fmprof, appname, "DetailsLWTime",
    29602960                        &detailslwtime, sizeof(BOOL));
    2961     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime",
    2962                         &detailslwtime, sizeof(BOOL));
     2961// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime",
     2962// JBS                  &detailslwtime, sizeof(BOOL));
    29632963    PrfWriteProfileData(fmprof, appname, "DetailsLADate",
    29642964                        &detailsladate, sizeof(BOOL));
    2965     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate",
    2966                         &detailsladate, sizeof(BOOL));
     2965// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate",
     2966// JBS                  &detailsladate, sizeof(BOOL));
    29672967    PrfWriteProfileData(fmprof, appname, "DetailsLATime",
    29682968                        &detailslatime, sizeof(BOOL));
    2969     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime",
    2970                         &detailslatime, sizeof(BOOL));
     2969// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime",
     2970// JBS                  &detailslatime, sizeof(BOOL));
    29712971    PrfWriteProfileData(fmprof, appname, "DetailsCRDate",
    29722972                        &detailscrdate, sizeof(BOOL));
    2973     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate",
    2974                         &detailscrdate, sizeof(BOOL));
     2973// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate",
     2974// JBS                  &detailscrdate, sizeof(BOOL));
    29752975    PrfWriteProfileData(fmprof, appname, "DetailsCRTime",
    29762976                        &detailscrtime, sizeof(BOOL));
    2977     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime",
    2978                         &detailscrtime, sizeof(BOOL));
     2977// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime",
     2978// JBS                  &detailscrtime, sizeof(BOOL));
    29792979    PrfWriteProfileData(fmprof, appname, "DetailsAttr",
    29802980                        &detailsattr, sizeof(BOOL));
    2981     PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr",
    2982                         &detailsattr, sizeof(BOOL));
     2981// JBS    PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr",
     2982// JBS                  &detailsattr, sizeof(BOOL));
    29832983    if (hwndMain) {
    29842984      if (SaveDirCnrState(hwndMain, GetPString(IDS_FM2TEMPTEXT)) > 0) {
Note: See TracChangeset for help on using the changeset viewer.