Changeset 1394 for trunk/dll/collect.c


Ignore:
Timestamp:
Feb 5, 2009, 5:17:25 AM (17 years ago)
Author:
Steven Levine
Message:

Ticket 340: Convert GetPString to use STRINGTABLE.

Drop fm3dll.str and mkstr.exe from makefiles and wpi builders

Convert many functions to expect PCSZ arguments.
Correct walk, compare and dirsizes dialog setups to ignore saved dialog size
Drop copyright.c logic from makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/collect.c

    r1375 r1394  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2003, 2008 Steven H. Levine
     9  Copyright (c) 2003, 2009 Steven H. Levine
    1010
    1111  15 Oct 02 MK Baseline
     
    292292    {
    293293      USHORT id = WinQueryWindowUShort(hwnd, QWS_ID);
    294       char *s = NULL;
     294      PCSZ s = NULL;
    295295
    296296      if (fOtherHelp) {
     
    13841384               MPVOID, MPFROM2SHORT(0, CMA_ERASE | CMA_REPOSITION));
    13851385    disable_menuitem(WinWindowFromID(WinQueryWindow(hwndMain, QW_PARENT),
    1386                                      FID_MENU), IDM_GREP, FALSE);
     1386                                     FID_MENU), IDM_GREP, FALSE);
    13871387    disable_menuitem(TreeMenu, IDM_GREP, FALSE);
    13881388    disable_menuitem(DirMenu, IDM_GREP, FALSE);
     
    19381938                 "Collector busy - please try again later");
    19391939        }
    1940         else {
    1941           GREPINFO *GrepInfo;
    1942 
    1943           GrepInfo = xmallocz(sizeof(GREPINFO), pszSrcFile, __LINE__);
    1944           if (GrepInfo) {
    1945             GrepInfo->hwnd = &hwnd;
    1946             if (mp2)
    1947               GrepInfo->szGrepPath = mp2;
    1948             if (WinDlgBox(HWND_DESKTOP, hwnd, GrepDlgProc,
    1949                           FM3ModHandle, GREP_FRAME, (PVOID) GrepInfo)) {
    1950               free(GrepInfo);
    1951               dcd->amextracted = TRUE;  // Say busy scanning
    1952               disable_menuitem(WinWindowFromID
    1953                                (WinQueryWindow(hwndMain, QW_PARENT), FID_MENU),
    1954                                IDM_GREP, TRUE);
    1955               disable_menuitem(TreeMenu, IDM_GREP, TRUE);
    1956               disable_menuitem(DirMenu, IDM_GREP, TRUE);
    1957               PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);
    1958             }
    1959             else
    1960               free(GrepInfo);
     1940        else {
     1941          GREPINFO *GrepInfo;
     1942
     1943          GrepInfo = xmallocz(sizeof(GREPINFO), pszSrcFile, __LINE__);
     1944          if (GrepInfo) {
     1945            GrepInfo->hwnd = &hwnd;
     1946            if (mp2)
     1947              GrepInfo->szGrepPath = mp2;
     1948            if (WinDlgBox(HWND_DESKTOP, hwnd, GrepDlgProc,
     1949                          FM3ModHandle, GREP_FRAME, (PVOID) GrepInfo)) {
     1950              free(GrepInfo);
     1951              dcd->amextracted = TRUE;  // Say busy scanning
     1952              disable_menuitem(WinWindowFromID
     1953                               (WinQueryWindow(hwndMain, QW_PARENT), FID_MENU),
     1954                               IDM_GREP, TRUE);
     1955              disable_menuitem(TreeMenu, IDM_GREP, TRUE);
     1956              disable_menuitem(DirMenu, IDM_GREP, TRUE);
     1957              PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);
     1958            }
     1959            else
     1960              free(GrepInfo);
    19611961          }
    19621962        }
     
    23782378          numitems = DrgQueryDragitemCount(pDInfo);
    23792379          usOperation = pDInfo->usOperation;
    2380           if (usOperation == DO_DEFAULT)
    2381             usOperation = fCopyDefault ? DO_COPY : DO_MOVE;
     2380          if (usOperation == DO_DEFAULT)
     2381            usOperation = fCopyDefault ? DO_COPY : DO_MOVE;
    23822382          FreeDragInfoData(hwnd, pDInfo);
    23832383          saymsg(MB_ENTER | MB_ICONASTERISK,
     
    29052905              IDM_REMOVE,
    29062906              0};
    2907         char *szHelpString = NULL;
     2907        PCSZ szHelpString = NULL;
    29082908
    29092909
Note: See TracChangeset for help on using the changeset viewer.