Changeset 1366 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Jan 1, 2009, 10:36:46 PM (17 years ago)
Author:
Gregg Young
Message:

Seek and scan called from the dir or drive context menu opens seek and scan and provides the path to start the search from. (Ticket 167)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1360 r1366  
    27472747        else
    27482748          StartCollector(dcd->hwndParent, 4);
    2749         if (SHORT1FROMMP(mp1) == IDM_GREP)
    2750           PostMsg(Collector, WM_COMMAND,
    2751                   MPFROM2SHORT(IDM_GREP, 0), MPVOID);
     2749        if (SHORT1FROMMP(mp1) == IDM_GREP) {
     2750          PCNRITEM pci = NULL;
     2751
     2752          pci = WinSendMsg(hwnd,
     2753                           CM_QUERYRECORDEMPHASIS,
     2754                           MPFROMLONG(CMA_FIRST), MPFROMSHORT(CRA_CURSORED));
     2755          if (pci && (INT) pci != -1)
     2756            PostMsg(Collector, WM_COMMAND,
     2757                    MPFROM2SHORT(IDM_GREP, 0), MPFROMP(pci->pszFileName));
     2758          else
     2759            PostMsg(Collector, WM_COMMAND,
     2760                    MPFROM2SHORT(IDM_GREP, 0), MPVOID);
     2761        }
    27522762        else
    27532763        PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_COLLECTOR, 0), MPVOID);
Note: See TracChangeset for help on using the changeset viewer.