Changeset 672 for trunk/dll/arccnrs.c
- Timestamp:
- May 13, 2007, 7:57:48 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r630 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 11 Jun 02 SHL Ensure archive name not garbage … … 37 37 20 Apr 07 SHL Sync with NumItemsToUnhilite mods 38 38 21 Apr 07 GKY Find FM2Utils by path or utils directory 39 12 May 07 SHL Use dcd->ulItemsToUnHilite; sync with UnHilite arg mods 39 40 40 41 ***********************************************************************/ … … 1118 1119 { 1119 1120 DIRCNRDATA *dcd; 1121 DIRCNRDATA *dcdsrc; 1120 1122 PSZ psz; 1121 1123 … … 1133 1135 li = DoFileDrop(dcd->hwndCnr, 1134 1136 dcd->directory, FALSE, MPVOID, MPFROMP(&cni)); 1135 if (NumItemsToUnhilite) 1136 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 1137 hwnd, 1138 GetPString(IDS_ERRORTEXT), 1139 GetPString(IDS_EXCEEDPMDRGLMT)); 1137 dcdsrc = INSTDATA(cni.pDragInfo->hwndSource); 1138 if (dcdsrc->ulItemsToUnHilite) { 1139 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 1140 hwnd, 1141 GetPString(IDS_ERRORTEXT), 1142 GetPString(IDS_EXCEEDPMDRGLMT)); 1143 } 1144 1140 1145 if (li) { 1141 1146 li->type = (msg == DM_DISCARDOBJECT) ? IDM_DELETE : IDM_PRINT; … … 1936 1941 MPARAM mp2) 1937 1942 { 1938 DIRCNRDATA *dcd = WinQueryWindowPtr(hwnd, QWL_USER); 1943 DIRCNRDATA *dcd = INSTDATA(hwnd); 1944 DIRCNRDATA *dcdsrc; 1939 1945 1940 1946 switch (msg) { … … 2374 2380 DefaultViewKeys(hwnd, dcd->hwndFrame, dcd->hwndParent, &swp, filename); 2375 2381 if (fUnHilite) 2376 UnHilite(hwnd, FALSE, &dcd->lastselection );2382 UnHilite(hwnd, FALSE, &dcd->lastselection, 0); 2377 2383 } 2378 2384 return 0; … … 2895 2901 } 2896 2902 else if (fUnHilite && SHORT1FROMMP(mp1) != IDM_EDIT) 2897 UnHilite(hwnd, TRUE, &dcd->lastselection );2903 UnHilite(hwnd, TRUE, &dcd->lastselection, 0); 2898 2904 } 2899 2905 else … … 3007 3013 dcd->hwndObject, 3008 3014 mp2, dcd->arcname, NULL, TRUE)) { 3009 if ((fUnHilite && wasemphasized) || NumItemsToUnhilite)3010 UnHilite(hwnd, TRUE, &dcd->lastselection );3015 if ((fUnHilite && wasemphasized) || dcd->ulItemsToUnHilite) 3016 UnHilite(hwnd, TRUE, &dcd->lastselection, dcd->ulItemsToUnHilite); 3011 3017 } 3012 3018 if (!ParentIsDesktop(hwnd, dcd->hwndParent) && … … 3037 3043 li = DoFileDrop(hwnd, dcd->arcname, FALSE, mp1, mp2); 3038 3044 DosBeep(50, 100); // fixme to know why beep? 3039 if (NumItemsToUnhilite) 3045 dcdsrc = INSTDATA(((PCNRDRAGINFO)mp2)->pDragInfo->hwndSource); 3046 if (dcdsrc->ulItemsToUnHilite) { 3040 3047 saymsg(MB_CANCEL | MB_ICONEXCLAMATION, 3041 hwnd, 3042 GetPString(IDS_ERRORTEXT), 3043 GetPString(IDS_EXCEEDPMDRGLMT)); 3048 hwnd, 3049 GetPString(IDS_ERRORTEXT), 3050 GetPString(IDS_EXCEEDPMDRGLMT)); 3051 } 3044 3052 if (li) { 3045 3053 li->type = li->type == DO_MOVE ? IDM_ARCHIVEM : IDM_ARCHIVE;
Note:
See TracChangeset
for help on using the changeset viewer.