Changeset 1357


Ignore:
Timestamp:
Dec 27, 2008, 12:57:18 AM (17 years ago)
Author:
Gregg Young
Message:

Fixed DROPHELP issues Tickets 320 & 324

Location:
trunk/dll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/collect.c

    r1335 r1357  
    5757                less than 10 KiB (It hangs and can't be closed)
    5858  10 Dec 08 SHL Integrate exception handler support
     59  26 Dec 08 GKY Fixed DROPHELP to check for copy as default is action is DO_DEFAULT
    5960
    6061***********************************************************************/
     
    23612362          numitems = DrgQueryDragitemCount(pDInfo);
    23622363          usOperation = pDInfo->usOperation;
     2364          if (usOperation == DO_DEFAULT)
     2365            usOperation = fCopyDefault ? DO_COPY : DO_MOVE;
    23632366          FreeDragInfoData(hwnd, pDInfo);
    23642367          saymsg(MB_ENTER | MB_ICONASTERISK,
  • trunk/dll/dircnrs.c

    r1350 r1357  
    5252  29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate.
    5353  10 Dec 08 SHL Integrate exception handler support
     54  26 Dec 08 GKY Fixed DROPHELP to check for copy as default is action is DO_DEFAULT
    5455
    5556***********************************************************************/
     
    29132914          else {
    29142915            numitems = DrgQueryDragitemCount(pDInfo);
    2915             usOperation = pDInfo->usOperation;
     2916            usOperation = pDInfo->usOperation;
     2917            if (usOperation == DO_DEFAULT)
     2918              usOperation = fCopyDefault ? DO_COPY : DO_MOVE;
    29162919            FreeDragInfoData(hwnd, pDInfo);
    29172920            saymsg(MB_ENTER | MB_ICONASTERISK,
     
    29252928                   pci ? pci->pszFileName : NullStr,
    29262929                   pci ? " " : NullStr,
    2927                    GetPString((usOperation == DO_COPY) ?
    2928                               IDS_COPYTEXT :
     2930                   GetPString((usOperation == DO_MOVE) ?
     2931                              IDS_MOVETEXT :
    29292932                              (usOperation == DO_LINK) ?
    2930                               IDS_LINKTEXT : IDS_MOVETEXT));
     2933                              IDS_LINKTEXT : IDS_COPYTEXT));
    29312934          }
    29322935        }
  • trunk/dll/treecnr.c

    r1354 r1357  
    5252  28 Nov 08 GKY Remove unneeded DosEnterCriSec calls
    5353  10 Dec 08 SHL Integrate exception handler support
     54  25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis
     55  26 Dec 08 GKY Implemented DROPHELP for the tree container
    5456
    5557***********************************************************************/
     
    14171419          DrgAccessDraginfo(pDInfo);
    14181420          DrgFreeDraginfo(pDInfo);
     1421        }
     1422        return 0;
     1423
     1424      case CN_DROPHELP:
     1425        if (mp2) {
     1426
     1427          PDRAGINFO pDInfo;
     1428          PCNRITEM pci;
     1429          ULONG numitems;
     1430          USHORT usOperation;
     1431
     1432          pci = (PCNRITEM) ((PCNRDRAGINFO) mp2)->pRecord;
     1433          pDInfo = (PDRAGINFO) ((PCNRDRAGINFO) mp2)->pDragInfo;
     1434          if (!DrgAccessDraginfo(pDInfo)) {
     1435            Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
     1436                      GetPString(IDS_DROPERRORTEXT));
     1437          }
     1438          else {
     1439            numitems = DrgQueryDragitemCount(pDInfo);
     1440            usOperation = pDInfo->usOperation;
     1441            if (usOperation == DO_DEFAULT)
     1442              usOperation = fCopyDefault ? DO_COPY : DO_MOVE;
     1443            FreeDragInfoData(hwnd, pDInfo);
     1444            saymsg(MB_ENTER | MB_ICONASTERISK,
     1445                   hwnd,
     1446                   GetPString(IDS_DROPHELPHDRTEXT),
     1447                   GetPString(IDS_DROPHELPTEXT),
     1448                   numitems,
     1449                   &"s"[numitems == 1L],
     1450                   pci ? NullStr : GetPString(IDS_NOTEXT),
     1451                   pci ? NullStr : " ",
     1452                   pci ? pci->pszFileName : NullStr,
     1453                   pci ? " " : NullStr,
     1454                   GetPString((usOperation == DO_MOVE) ?
     1455                              IDS_MOVETEXT :
     1456                              (usOperation == DO_LINK) ?
     1457                              IDS_LINKTEXT : IDS_COPYTEXT));
     1458          }
    14191459        }
    14201460        return 0;
Note: See TracChangeset for help on using the changeset viewer.