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

    r1357 r1366  
    21462146        }
    21472147        else
    2148           StartCollector(dcd->hwndParent, 4);
    2149         if (SHORT1FROMMP(mp1) == IDM_GREP)
    2150           PostMsg(Collector, WM_COMMAND,
    2151                   MPFROM2SHORT(IDM_GREP, 0), MPVOID);
     2148          StartCollector(dcd->hwndParent, 4);
     2149        if (SHORT1FROMMP(mp1) == IDM_GREP) {
     2150          PCNRITEM pci = NULL;
     2151
     2152          pci = WinSendMsg(hwnd,
     2153                           CM_QUERYRECORDEMPHASIS,
     2154                           MPFROMLONG(CMA_FIRST), MPFROMSHORT(CRA_CURSORED));
     2155          if (pci && (INT) pci != -1)
     2156            PostMsg(Collector, WM_COMMAND,
     2157                    MPFROM2SHORT(IDM_GREP, 0), MPFROMP(pci->pszFileName));
     2158          else
     2159            PostMsg(Collector, WM_COMMAND,
     2160                    MPFROM2SHORT(IDM_GREP, 0), MPVOID);
     2161        }
    21522162        else
    21532163          PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_COLLECTOR, 0), MPVOID);
Note: See TracChangeset for help on using the changeset viewer.