Changeset 971 for trunk/dll/notebook.c


Ignore:
Timestamp:
Feb 23, 2008, 1:56:38 AM (17 years ago)
Author:
John Small
Message:

Ticket 230: Fix/improve code related to various state or presparam values
stored in the INI file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r961 r971  
    13971397          // Save state and restore to refresh windows with new settings
    13981398          if (SaveDirCnrState(hwndMain, GetPString(IDS_FM2TEMPTEXT)) > 0) {
    1399             PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2));
    1400             PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);
     1399            PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2));
     1400//          PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);
     1401            PostMsg(MainObjectHwnd, UM_RESTORE, GetPString(IDS_FM2TEMPTEXT), MPVOID);
    14011402          }
    14021403        }
     
    18211822        PrfWriteProfileData(fmprof,
    18221823                            appname, "SubjectDisplayWidth",
    1823                             &SubjectDisplayWidth, sizeof(ULONG));
    1824         PrfWriteProfileData(fmprof,
    1825                             appname, "DirCnr.SubjectDisplayWidth",
    18261824                            &SubjectDisplayWidth, sizeof(ULONG));
    18271825    }
     
    23662364                            "CollectorflWindowAttr",
    23672365                            &flWindowAttr, sizeof(ULONG));
    2368         PrfWriteProfileData(fmprof, appname, "DirCnr.Fontnamesize", NULL, 0);
    23692366        PrfWriteProfileData(fmprof,
    23702367                            appname, "Collector.Fontnamesize", NULL, 0);
     
    24212418                            "CollectorflWindowAttr",
    24222419                            &flWindowAttr, sizeof(ULONG));
    2423         PrfWriteProfileData(fmprof,
    2424                             appname,
    2425                             "DirCnr.Fontnamesize",
    2426                             GetPString(IDS_8HELVTEXT),
    2427                             strlen(GetPString(IDS_8HELVTEXT)) + 1);
    24282420        PrfWriteProfileData(fmprof,
    24292421                            appname,
     
    24842476        PrfWriteProfileData(fmprof, appname, "CollectorflWindowAttr",
    24852477                            &flWindowAttr, sizeof(ULONG));
    2486         PrfWriteProfileData(fmprof, appname, "DirCnr.Fontnamesize",
    2487                             GetPString(IDS_8HELVTEXT),
    2488                             strlen(GetPString(IDS_8HELVTEXT)) + 1);
    24892478        PrfWriteProfileData(fmprof, appname, "Collector.Fontnamesize",
    24902479                            GetPString(IDS_8HELVTEXT),
     
    29502939      if (SaveDirCnrState(hwndMain, GetPString(IDS_FM2TEMPTEXT)) > 0) {
    29512940        // Tell window procedure to close container windows
    2952         PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2));
     2941        PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2));
    29532942        // Restore saved state
    2954         PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);
     2943//      PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);
     2944        PostMsg(MainObjectHwnd, UM_RESTORE, GetPString(IDS_FM2TEMPTEXT), MPVOID);
    29552945      }
    29562946    }
Note: See TracChangeset for help on using the changeset viewer.