Changeset 1394 for trunk/dll/dircnrs.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/dircnrs.c

    r1375 r1394  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2008 Steven H. Levine
     9  Copyright (c) 2001, 2009 Steven H. Levine
    1010
    1111  16 Oct 02 SHL Handle large partitions
     
    363363    {
    364364      USHORT id = WinQueryWindowUShort(hwnd, QWS_ID);
    365       char *s = NULL;
     365      PCSZ s = NULL;
    366366
    367367      if (fOtherHelp) {
     
    703703        numentries++;
    704704      if (numentries)
    705         UpdateCnrList(dcd->hwndCnr, list, numentries, TRUE, dcd);
     705        UpdateCnrList(dcd->hwndCnr, list, numentries, TRUE, dcd);
    706706    }
    707707    return 0;
     
    19411941          }
    19421942        }
    1943         break;
     1943        break;
    19441944
    19451945      case IDM_FINDINTREE:
     
    21472147        }
    21482148        else
    2149           StartCollector(dcd->hwndParent, 4);
    2150         if (SHORT1FROMMP(mp1) == IDM_GREP) {
    2151           PCNRITEM pci = NULL;
    2152 
    2153           pci = WinSendMsg(hwnd,
    2154                            CM_QUERYRECORDEMPHASIS,
    2155                            MPFROMLONG(CMA_FIRST), MPFROMSHORT(CRA_CURSORED));
    2156           if (pci && (INT) pci != -1)
    2157             PostMsg(Collector, WM_COMMAND,
    2158                     MPFROM2SHORT(IDM_GREP, 0), MPFROMP(pci->pszFileName));
    2159           else
    2160             PostMsg(Collector, WM_COMMAND,
    2161                     MPFROM2SHORT(IDM_GREP, 0), MPVOID);
    2162         }
    2163         else
     2149          StartCollector(dcd->hwndParent, 4);
     2150        if (SHORT1FROMMP(mp1) == IDM_GREP) {
     2151          PCNRITEM pci = NULL;
     2152
     2153          pci = WinSendMsg(hwnd,
     2154                           CM_QUERYRECORDEMPHASIS,
     2155                           MPFROMLONG(CMA_FIRST), MPFROMSHORT(CRA_CURSORED));
     2156          if (pci && (INT) pci != -1)
     2157            PostMsg(Collector, WM_COMMAND,
     2158                    MPFROM2SHORT(IDM_GREP, 0), MPFROMP(pci->pszFileName));
     2159          else
     2160            PostMsg(Collector, WM_COMMAND,
     2161                    MPFROM2SHORT(IDM_GREP, 0), MPVOID);
     2162        }
     2163        else
    21642164          PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_COLLECTOR, 0), MPVOID);
    21652165        break;
     
    29252925          else {
    29262926            numitems = DrgQueryDragitemCount(pDInfo);
    2927             usOperation = pDInfo->usOperation;
    2928             if (usOperation == DO_DEFAULT)
    2929               usOperation = fCopyDefault ? DO_COPY : DO_MOVE;
     2927            usOperation = pDInfo->usOperation;
     2928            if (usOperation == DO_DEFAULT)
     2929              usOperation = fCopyDefault ? DO_COPY : DO_MOVE;
    29302930            FreeDragInfoData(hwnd, pDInfo);
    29312931            saymsg(MB_ENTER | MB_ICONASTERISK,
     
    36203620                                   WC_DIRCONTAINER,
    36213621                                   NULL,
    3622                                    WS_VISIBLE | fwsAnimate,
     3622                                   WS_VISIBLE | fwsAnimate,
    36233623                                   FM3ModHandle, DIR_FRAME, &hwndClient);
    36243624    if (hwndFrame && hwndClient) {
     
    37293729                            SWP_SIZE | SWP_MOVE | SWP_SHOW | SWP_ZORDER |
    37303730                            SWP_ACTIVATE);
    3731           }
    3732           WinShowWindow(dcd->hwndCnr, TRUE);
     3731          }
     3732          WinShowWindow(dcd->hwndCnr, TRUE);
    37333733        }
    37343734      }
Note: See TracChangeset for help on using the changeset viewer.