Changeset 672 for trunk/dll/collect.c
- Timestamp:
- May 13, 2007, 7:57:48 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/dll/collect.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r618 r672 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 200 6Steven H. Levine9 Copyright (c) 2003, 2007 Steven H. Levine 10 10 11 11 15 Oct 02 MK Baseline … … 34 34 06 Apr 07 GKY Add some error checking in drag/drop 35 35 19 Apr 07 SHL Use FreeDragInfoData. Add more drag/drop error checks. 36 12 May 07 SHL Use dcd->ulItemsToUnHilite 36 37 37 38 ***********************************************************************/ … … 443 444 ULONG size; 444 445 DIRCNRDATA *dcd; 446 DIRCNRDATA *dcdsrc; 445 447 446 448 switch (msg) { … … 460 462 cni.pDragInfo = (PDRAGINFO) mp1; 461 463 li = DoFileDrop(dcd->hwndCnr, NULL, FALSE, MPVOID, MPFROMP(&cni)); 462 if (NumItemsToUnhilite) 464 dcdsrc = INSTDATA(cni.pDragInfo->hwndSource); 465 if (dcdsrc->ulItemsToUnHilite) { 463 466 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 464 hwnd, 465 GetPString(IDS_ERRORTEXT), 466 GetPString(IDS_EXCEEDPMDRGLMT)); 467 hwnd, 468 GetPString(IDS_ERRORTEXT), 469 GetPString(IDS_EXCEEDPMDRGLMT)); 470 } 467 471 if (li) { 468 li->type = (fDefaultDeletePerm)? IDM_PERMDELETE : IDM_DELETE;472 li->type = fDefaultDeletePerm ? IDM_PERMDELETE : IDM_DELETE; 469 473 if (!PostMsg(hwnd, UM_MASSACTION, MPFROMP(li), MPVOID)) 470 474 FreeListInfo(li); … … 912 916 MPARAM mp2) 913 917 { 914 DIRCNRDATA *dcd = WinQueryWindowPtr(hwnd, QWL_USER); 918 DIRCNRDATA *dcd = INSTDATA(hwnd); 919 DIRCNRDATA *dcdsrc; 915 920 ULONG size; 916 921 … … 2011 2016 } 2012 2017 else if (fUnHilite) 2013 UnHilite(hwnd, TRUE, &dcd->lastselection );2018 UnHilite(hwnd, TRUE, &dcd->lastselection, dcd->ulItemsToUnHilite); 2014 2019 } 2015 2020 else … … 2031 2036 RunCommand(hwnd, x); 2032 2037 if (fUnHilite) 2033 UnHilite(hwnd, TRUE, &dcd->lastselection );2038 UnHilite(hwnd, TRUE, &dcd->lastselection, dcd->ulItemsToUnHilite); 2034 2039 } 2035 2040 } … … 2243 2248 GetPString(IDS_DRAGFILEOBJTEXT)); 2244 2249 if (DoFileDrag(hwnd, dcd->hwndObject, mp2, NULL, NULL, TRUE)) { 2245 if ((fUnHilite && wasemphasized) || NumItemsToUnhilite)2246 UnHilite(hwnd, TRUE, &dcd->lastselection );2250 if ((fUnHilite && wasemphasized) || dcd->ulItemsToUnHilite) 2251 UnHilite(hwnd, TRUE, &dcd->lastselection, dcd->ulItemsToUnHilite); 2247 2252 } 2248 2253 if (hwndStatus2) … … 2259 2264 2260 2265 li = DoFileDrop(hwnd, NULL, TRUE, mp1, mp2); 2261 if (NumItemsToUnhilite) 2266 dcdsrc = INSTDATA(((PCNRDRAGINFO)mp2)->pDragInfo->hwndSource); 2267 if (dcdsrc->ulItemsToUnHilite) { 2262 2268 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 2263 hwnd, 2264 GetPString(IDS_ERRORTEXT), 2265 GetPString(IDS_EXCEEDPMDRGLMT)); 2269 hwnd, 2270 GetPString(IDS_ERRORTEXT), 2271 GetPString(IDS_EXCEEDPMDRGLMT)); 2272 } 2266 2273 if (li) { 2267 2274 if (!*li->targetpath) {
Note:
See TracChangeset
for help on using the changeset viewer.
