Changeset 672 for trunk/dll/treecnr.c
- Timestamp:
- May 13, 2007, 7:57:48 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r618 r672 30 30 19 Apr 07 SHL Sync with AcceptOneDrop GetOneDrop mods 31 31 19 Apr 07 SHL Add more drag/drop error checking 32 12 May 07 SHL Use dcd->ulItemsToUnHilite; sync with UnHilite arg mods 32 33 33 34 ***********************************************************************/ … … 504 505 { 505 506 DIRCNRDATA *dcd; 507 DIRCNRDATA *dcdsrc; 506 508 507 509 switch (msg) { … … 547 549 li = DoFileDrop(dcd->hwndCnr, 548 550 dcd->directory, FALSE, MPVOID, MPFROMP(&cni)); 549 if (NumItemsToUnhilite) 551 dcdsrc = INSTDATA(cni.pDragInfo->hwndSource); 552 if (dcdsrc->ulItemsToUnHilite) { 550 553 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 551 hwnd, 552 GetPString(IDS_ERRORTEXT), 553 GetPString(IDS_EXCEEDPMDRGLMT)); 554 hwnd, 555 GetPString(IDS_ERRORTEXT), 556 GetPString(IDS_EXCEEDPMDRGLMT)); 557 } 554 558 if (li) { 555 559 li->type = ((fDefaultDeletePerm) ? IDM_PERMDELETE : IDM_DELETE); … … 830 834 { 831 835 static APPNOTIFY *apphead = NULL, *apptail = NULL; 832 DIRCNRDATA *dcd = WinQueryWindowPtr(hwnd, QWL_USER); 836 DIRCNRDATA *dcd = INSTDATA(hwnd); 837 DIRCNRDATA *dcdsrc; 833 838 834 839 switch (msg) { … … 1378 1383 1379 1384 li = DoFileDrop(hwnd, NULL, TRUE, mp1, mp2); 1380 if (NumItemsToUnhilite) 1385 dcdsrc = INSTDATA(((PCNRDRAGINFO)mp2)->pDragInfo->hwndSource); 1386 if (dcdsrc->ulItemsToUnHilite) { 1381 1387 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 1382 hwnd, 1383 GetPString(IDS_ERRORTEXT), 1384 GetPString(IDS_EXCEEDPMDRGLMT)); 1388 hwnd, 1389 GetPString(IDS_ERRORTEXT), 1390 GetPString(IDS_EXCEEDPMDRGLMT)); 1391 } 1385 1392 if (li) { 1386 1393 if (!*li->targetpath) { … … 2784 2791 RunCommand(hwnd, x); 2785 2792 if (fUnHilite) 2786 UnHilite(hwnd, TRUE, &dcd->lastselection );2793 UnHilite(hwnd, TRUE, &dcd->lastselection, 0); 2787 2794 } 2788 2795 }
Note:
See TracChangeset
for help on using the changeset viewer.