Changeset 618 for trunk/dll/select.c


Ignore:
Timestamp:
Apr 20, 2007, 9:19:03 PM (18 years ago)
Author:
Steven Levine
Message:

Add more drag/drop error checking
Use FreeDragInfoData
Sync with NumItemsToUnhilite AcceptOneDrop GetOneDrop mods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/select.c

    r606 r618  
    1717  15 Aug 06 SHL Rework SetMask args and logic
    1818  06 Apr 07 GKY Work around PM DragInfo and DrgFreeDISH limits
     19  19 Apr 07 SHL Sync with NumItemsToUnhilite mods
    1920
    2021***********************************************************************/
     
    6263      if (!all)
    6364          break;
    64       if(fExceedPMDrgLimit && x == fExceedPMDrgLimit - 1){
    65           fExceedPMDrgLimit = 0;
    66           break;
     65      // Count is one extra to ensure non-zero elsewhere
     66      if (NumItemsToUnhilite && x + 2 == NumItemsToUnhilite){
     67        NumItemsToUnhilite = 0;
     68        break;
    6769      }
    6870      if (list)
     
    421423
    422424  if (quitit)
    423     attribute = (target) ? CRA_TARGET : (source) ? CRA_SOURCE : CRA_INUSE;
     425    attribute = target ? CRA_TARGET : source ? CRA_SOURCE : CRA_INUSE;
    424426  pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORDEMPHASIS,
    425427                              MPFROMLONG(CMA_FIRST), MPFROMSHORT(attribute));
     
    437439    WinSendMsg(hwndCnr, CM_SETRECORDEMPHASIS, MPFROMP(pci),
    438440               MPFROM2SHORT(!quitit,
    439                             ((target) ? CRA_TARGET : (source) ? CRA_SOURCE :
    440                              CRA_INUSE)));
     441                            target ? CRA_TARGET : source ? CRA_SOURCE :
     442                             CRA_INUSE));
    441443    pci =
    442444      WinSendMsg(hwndCnr, CM_QUERYRECORDEMPHASIS, MPFROMP(pci),
Note: See TracChangeset for help on using the changeset viewer.