Changeset 971 for trunk/dll


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

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

Location:
trunk/dll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r958 r971  
    12311231    return 0;
    12321232
    1233   case WM_PRESPARAMCHANGED:
    1234     PresParamChanged(hwnd, "DirCnr", mp1, mp2);
    1235     break;
     1233//   case WM_PRESPARAMCHANGED:
     1234//     PresParamChanged(hwnd, "DirCnr", mp1, mp2);
     1235//     break;
    12361236
    12371237  case UM_UPDATERECORDLIST:
     
    14271427        CNRINFO cnri;
    14281428
    1429         RestorePresParams(hwnd, "DirCnr");
     1429//      RestorePresParams(hwnd, "DirCnr");
    14301430        memset(&cnri, 0, sizeof(CNRINFO));
    14311431        cnri.cb = sizeof(CNRINFO);
  • trunk/dll/mainwnd.c

    r965 r971  
    5353  15 Feb 08 SHL Rework ResizeChildren to honor fNoTreeGap and resize drive tree better
    5454  19 Feb 08 JBS Stop deleting "State at last FM/2 Close" from INI file so it be accessed from States combo box.
     55  22 Feb 08 JBS Ticket 230: Fix/improve various code related to state or presparam values in the INI file.
    5556
    5657***********************************************************************/
     
    32133214              PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);
    32143215          }
    3215           sprintf(szKey, "%sDirCnr.%lu", szPrefix, x);
    3216           RestorePresParams(hwndClient, szKey);
    3217           SavePresParams(hwndClient, "DirCnr");
     3216//        sprintf(szKey, "%sDirCnr.%lu", szPrefix, x);
     3217//        RestorePresParams(hwndClient, szKey);
     3218//        SavePresParams(hwndClient, "DirCnr");
    32183219          hwndDir = (HWND) WinSendMsg(hwndClient,
    32193220                                      UM_SETDIR,
     
    32233224            if (hwndC) {
    32243225              HWND hwndCnr = WinWindowFromID(hwndC, DIR_CNR);
     3226              sprintf(szKey, "%sDirCnr.%lu", szPrefix, x);
     3227              RestorePresParams(hwndCnr, szKey);
    32253228              dcd = WinQueryWindowPtr(hwndCnr, QWL_USER);
    32263229              if (dcd) {
     
    46404643              sprintf(s, "%s.DirCnr.%lu.DetailsAttr", szStateName, x);
    46414644              PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     4645              sprintf(s, "%s.DirCnr.%lu.DetailsIcon", szStateName, x);
     4646              PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
    46424647              sprintf(s, "%s.DirCnr.%lu.DetailsLWDate", szStateName, x);
    46434648              PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     
    46514656              PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
    46524657              sprintf(s, "%s.DirCnr.%lu.DetailsCRTime", szStateName, x);
     4658              PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     4659              sprintf(s, "%s.DirCnr.%lu.Backgroundcolor", szStateName, x);
     4660              PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     4661              sprintf(s, "%s.DirCnr.%lu.Fontnamesize", szStateName, x);
    46534662              PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
    46544663            }
  • 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.