Changeset 1400 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Mar 8, 2009, 6:50:25 PM (16 years ago)
Author:
Gregg Young
Message:

Remainder of changes to rename commafmt.h/c (Ticket 28, 82); Additional strings moved to PCSZs in init.c (Ticket 6); Added WriteDetailsSwitches used it and LoadDetailsSwitches to consolidate inline code (Ticket 343, 344)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1398 r1400  
    6262  07 Feb 09 GKY Add *DateFormat functions to format dates based on locale
    6363  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
     64  08 Mar 09 GKY Renamed commafmt.h i18nutil.h
     65  08 Mar 09 GKY Additional strings move to PCSZs in init.c
     66  08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code
    6467
    6568***********************************************************************/
     
    122125#include "newview.h"                    // StartViewer
    123126#include "walkem.h"                     // WalkAllDlgProc
    124 #include "commafmt.h"                   // CommaFmtULL
     127#include "i18nutil.h"                   // CommaFmtULL
    125128#include "wrappers.h"                   // xDosFindFirst
    126129#include "systemf.h"                    // runemf2
     
    181184      WinSetPresParam(hwnd, PP_FONTNAMESIZE,
    182185                      strlen(FNT_8TIMESNEWROMAN) + 1,
    183                       FNT_8TIMESNEWROMAN);
     186                      (PVOID) FNT_8TIMESNEWROMAN);
    184187      return rc;
    185188    }
     
    11151118
    11161119  case WM_PRESPARAMCHANGED:
    1117     PresParamChanged(hwnd, "TreeCnr", mp1, mp2);
     1120    PresParamChanged(hwnd, PCSZ_TREECNR, mp1, mp2);
    11181121    break;
    11191122
     
    12721275#       endif
    12731276
    1274         RestorePresParams(hwnd, "TreeCnr");
     1277        RestorePresParams(hwnd, PCSZ_TREECNR);
    12751278        memset(&cnri, 0, sizeof(CNRINFO));
    12761279        cnri.cb = sizeof(CNRINFO);
     
    23092312      else {
    23102313        if (!PostMsg(dcd->hwndObject, UM_COMMAND, mp1, mp2)) {
    2311           Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
     2314          Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG);
    23122315          FreeListInfo((LISTINFO *) mp1);
    23132316        }
     
    26002603        runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__,
    26012604                NULL, NULL,
    2602                 "%s", "MINILVM.EXE");
     2605                "%s", PCSZ_MINILVMEXE);
    26032606        break;
    26042607
     
    26062609        runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__,
    26072610                NULL, NULL,
    2608                 "%s", "DFSOS2.EXE");
     2611                "%s", PCSZ_DFSOS2EXE);
    26092612        break;
    26102613
     
    26122615        runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__,
    26132616                NULL, NULL,
    2614                 "%s", "LVMGUI.CMD");
     2617                "%s", PCSZ_LVMGUICMD);
    26152618        break;
    26162619
     
    26182621        runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__,
    26192622                NULL, NULL,
    2620                 "%s", "FDISKPM.EXE");
     2623                "%s", PCSZ_FDISKPMEXE);
    26212624        break;
    26222625
     
    26242627        runemf2(SEPARATE | WINDOWED | BACKGROUND | MINIMIZED | WAIT,
    26252628                HWND_DESKTOP, pszSrcFile, __LINE__, NULL, NULL,
    2626                 "%s", "LVM.EXE /RediscoverPRM");
     2629                "%s %s", PCSZ_LVMEXE, "/RediscoverPRM");
    26272630         PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID);
    26282631        break;
     
    29932996              *li->targetpath = 0;
    29942997            if (!PostMsg(dcd->hwndObject, action, MPFROMP(li), MPVOID)) {
    2995               Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
     2998              Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG);
    29962999              FreeListInfo(li);
    29973000            }
Note: See TracChangeset for help on using the changeset viewer.