Changeset 672 for trunk/dll/dircnrs.c
- Timestamp:
 - May 13, 2007, 7:57:48 AM (18 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/dll/dircnrs.c (modified) (10 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/dll/dircnrs.c
r618 r672 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 200 6Steven H. Levine9 Copyright (c) 2001, 2007 Steven H. Levine 10 10 11 11 16 Oct 02 SHL Handle large partitions … … 25 25 06 Apr 07 GKY Add some error checking in drag/drop 26 26 19 Apr 07 SHL Use FreeDragInfoData. Add more drag/drop error checking. 27 12 May 07 SHL Use dcd->ulItemsToUnHilite; sync with UnHilite arg mods 27 28 28 29 ***********************************************************************/ … … 570 571 { 571 572 DIRCNRDATA *dcd; 573 DIRCNRDATA *dcdsrc; 572 574 573 575 switch (msg) { … … 587 589 cni.pRecord = NULL; 588 590 cni.pDragInfo = (PDRAGINFO) mp1; 591 DbgMsg(pszSrcFile, __LINE__, "calling DoFileDrop"); 589 592 li = 590 593 DoFileDrop(dcd->hwndCnr, dcd->directory, FALSE, MPVOID, 591 594 MPFROMP(&cni)); 592 if (NumItemsToUnhilite) 595 dcdsrc = INSTDATA(cni.pDragInfo->hwndSource); 596 if (dcdsrc->ulItemsToUnHilite) { 593 597 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 594 hwnd, 595 GetPString(IDS_ERRORTEXT), 596 GetPString(IDS_EXCEEDPMDRGLMT)); 598 hwnd, 599 GetPString(IDS_ERRORTEXT), 600 GetPString(IDS_EXCEEDPMDRGLMT)); 601 } 597 602 if (li) { 598 603 li->type = (fDefaultDeletePerm) ? IDM_PERMDELETE : IDM_DELETE; … … 1057 1062 MRESULT EXPENTRY DirCnrWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1058 1063 { 1059 DIRCNRDATA *dcd = WinQueryWindowPtr(hwnd, QWL_USER); 1060 APIRET rc; 1064 DIRCNRDATA *dcd = INSTDATA(hwnd); 1065 DIRCNRDATA *dcdsrc; 1066 APIRET rc; 1061 1067 1062 1068 switch (msg) { … … 1985 1991 FreeList(list); 1986 1992 else if (fUnHilite) 1987 UnHilite(hwnd, TRUE, &dcd->lastselection );1993 UnHilite(hwnd, TRUE, &dcd->lastselection, 0); 1988 1994 } 1989 1995 else … … 2513 2519 } 2514 2520 else if (fUnHilite) 2515 UnHilite(hwnd, TRUE, &dcd->lastselection );2521 UnHilite(hwnd, TRUE, &dcd->lastselection, 0); 2516 2522 } 2517 2523 else … … 2542 2548 RunCommand(hwnd, x); 2543 2549 if (fUnHilite) 2544 UnHilite(hwnd, TRUE, &dcd->lastselection );2550 UnHilite(hwnd, TRUE, &dcd->lastselection, 0); 2545 2551 } 2546 2552 } … … 2834 2840 pci ? NULL : dcd->directory, 2835 2841 pci ? TRUE : FALSE)) { 2836 if ((pci && fUnHilite && wasemphasized) || NumItemsToUnhilite) {2837 UnHilite(hwnd, TRUE, &dcd->lastselection );2842 if ((pci && fUnHilite && wasemphasized) || dcd->ulItemsToUnHilite) { 2843 UnHilite(hwnd, TRUE, &dcd->lastselection, dcd->ulItemsToUnHilite); 2838 2844 } 2839 2845 } … … 2852 2858 ULONG action = UM_ACTION; 2853 2859 2860 DbgMsg(pszSrcFile, __LINE__, "calling DoFileDrop"); 2854 2861 li = DoFileDrop(hwnd, dcd->directory, TRUE, mp1, mp2); 2855 if (NumItemsToUnhilite) { 2862 dcdsrc = INSTDATA(((PCNRDRAGINFO)mp2)->pDragInfo->hwndSource); 2863 2864 if (dcdsrc->ulItemsToUnHilite) { 2856 2865 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 2857 hwnd, 2858 GetPString(IDS_ERRORTEXT), 2859 GetPString(IDS_EXCEEDPMDRGLMT)); 2860 } 2866 hwnd, 2867 GetPString(IDS_ERRORTEXT), 2868 GetPString(IDS_EXCEEDPMDRGLMT)); 2869 } 2870 2861 2871 if (li) { 2862 2872 if (li->list && li->list[0] && IsRoot(li->list[0]))  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  