Changeset 1400 for trunk/dll/collect.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/collect.c

    r1398 r1400  
    6363  07 Feb 09 GKY Add *DateFormat functions to format dates based on locale
    6464  07 Feb 09 GKY Move repeated strings to PCSZs.
     65  08 Mar 09 GKY Renamed commafmt.h i18nutil.h
     66  08 Mar 09 GKY Additional strings move to PCSZs in init.c
    6567
    6668***********************************************************************/
     
    130132#include "newview.h"                    // StartViewer
    131133#include "undel.h"                      // UndeleteDlgProc
    132 #include "commafmt.h"                   // commafmt
     134#include "i18nutil.h"                   // commafmt
    133135#include "getnames.h"                   // insert_filename
    134136#include "select.h"                     // InvertAll
     
    12041206
    12051207  case WM_PRESPARAMCHANGED:
    1206     PresParamChanged(hwnd, "Collector", mp1, mp2);
     1208    PresParamChanged(hwnd, PCSZ_COLLECTOR, mp1, mp2);
    12071209    break;
    12081210
     
    14151417        CNRINFO cnri;
    14161418
    1417         RestorePresParams(hwnd, "Collector");
    1418         LoadDetailsSwitches("Collector", &dcd->ds);
     1419        RestorePresParams(hwnd, PCSZ_COLLECTOR);
     1420        LoadDetailsSwitches(PCSZ_COLLECTOR, &dcd->ds);
    14191421
    14201422        dcd->amextracted = FALSE;       // Say not busy
     
    15801582      else {
    15811583        if (!PostMsg(dcd->hwndObject, UM_COLLECTFROMFILE, mp1, mp2)) {
    1582           Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
     1584          Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG);
    15831585        }
    15841586      }
     
    15951597      if (dcd) {
    15961598        if (!PostMsg(dcd->hwndObject, UM_COMMAND, mp1, mp2)) {
    1597           Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
     1599          Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG);
    15981600          FreeListInfo((LISTINFO *) mp1);
    15991601        }
     
    20822084        AdjustDetailsSwitches(hwnd, dcd->hwndLastMenu,
    20832085                              SHORT1FROMMP(mp1), NULL,
    2084                               "Collector", &dcd->ds, FALSE);
     2086                              PCSZ_COLLECTOR, &dcd->ds, FALSE);
    20852087        break;
    20862088
     
    22622264                *li->targetpath = 0;
    22632265              if (!PostMsg(dcd->hwndObject, action, MPFROMP(li), MPVOID)) {
    2264                 Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
     2266                Runtime_Error(pszSrcFile, __LINE__, PCSZ_POSTMSG);
    22652267                FreeListInfo(li);
    22662268              }
Note: See TracChangeset for help on using the changeset viewer.