Changeset 1391 for trunk/dll/notebook.c


Ignore:
Timestamp:
Jan 12, 2009, 12:55:53 AM (17 years ago)
Author:
Gregg Young
Message:

Move nontranslated strings to init.c and codepage.c; use those strings in place of GetPString calls. Move other strings to a StringTable; minor cleanup and code changes to codepage.c to use a string array instead of GetPString calls. Ticket 340

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r1375 r1391  
    4444  25 Dec 08 GKY Add ProcessDirectoryThread to allow optional recursive drive scan at startup.
    4545  01 Jan 09 GKY Add option to rescan tree container on eject of removable media
     46  11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c
    4647
    4748***********************************************************************/
     
    8586#include "fortify.h"
    8687#include "info.h"                       // driveflags
     88#include "init.h"                       // font strings
    8789
    8890static VOID SaveLastPageIndex(HWND hwnd);
     
    30753077                            "CollectorflWindowAttr",
    30763078                            &flWindowAttr, sizeof(ULONG));
     3079        //fixme to allow user to change presparams 1-10-09 GKY
    30773080        PrfWriteProfileData(fmprof,
    30783081                            appname,
    30793082                            "Collector.Fontnamesize",
    3080                             GetPString(IDS_8HELVTEXT),
    3081                             strlen(GetPString(IDS_8HELVTEXT)) + 1);
     3083                            FNT_8HELVETICA,
     3084                            strlen(FNT_8HELVETICA) + 1);
    30823085      }
    30833086      dsDirCnrDefault.detailslongname = TRUE;
     
    31333136        PrfWriteProfileData(fmprof, appname, "CollectorflWindowAttr",
    31343137                            &flWindowAttr, sizeof(ULONG));
     3138        //fixme to allow user to change presparams 1-10-09 GKY
    31353139        PrfWriteProfileData(fmprof, appname, "Collector.Fontnamesize",
    3136                             GetPString(IDS_8HELVTEXT),
    3137                             strlen(GetPString(IDS_8HELVTEXT)) + 1);
     3140                            FNT_8HELVETICA,
     3141                            strlen(FNT_8HELVETICA) + 1);
    31383142      }
    31393143      if (hwndTree) {
     
    36923696          else {
    36933697            mp2 = WinSendMsg(mi.hwndSubMenu, MM_QUERYDEFAULTITEMID, MPVOID, MPVOID);
    3694             //if (!mp2)
     3698            //if (!mp2) // causes spurious error message on new installs GKY 1-9-09
    36953699            //  mp2 = MPFROMLONG(IDM_QUICKSETTINGS);
    36963700              //Runtime_Error(pszSrcFile, __LINE__, "MM_QUERYDEFAULTITEMID");
Note: See TracChangeset for help on using the changeset viewer.