Changeset 8739 for trunk/src


Ignore:
Timestamp:
Jun 20, 2002, 9:18:12 PM (23 years ago)
Author:
sandervl
Message:

PF: Don't erase background for ownerdrawn listview controls (LISTVIEW_RefreshReport) + SvL: Added LVN_BEGINDRAG/LVN_BEGINRDRAG notification to listview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/listview.c

    r8535 r8739  
    148148    POINT             scrollStep;   //in pixels
    149149    DWORD             internalFlags;
     150    BOOL              bDragInProcess;
    150151#endif
    151152  HWND hwndSelf;
     
    24232424    }
    24242425  }
    2425  
     2426#ifdef __WIN32OS2__
     2427  else
     2428  if(!infoPtr->bDragInProcess && (infoPtr->bLButtonDown || infoPtr->bRButtonDown) && infoPtr->nSelectionMark != -1) {
     2429      NMLISTVIEW nml = {0};
     2430      nml.iItem = infoPtr->nSelectionMark;
     2431      listview_notify(hwnd, (infoPtr->bLButtonDown) ? LVN_BEGINDRAG : LVN_BEGINRDRAG, &nml);
     2432      infoPtr->bDragInProcess = TRUE;
     2433  }
     2434#endif 
    24262435  return 0;
    24272436}
     
    37483757  FullSelected = infoPtr->dwExStyle & LVS_EX_FULLROWSELECT;
    37493758
    3750   /* clear the background of any part of the control that doesn't contain items */
    3751   SubtractRect(&rcTemp, &infoPtr->rcList, &infoPtr->rcView);
    3752   LISTVIEW_FillBackground(hwnd, hdc, &rcTemp);
     3759#ifdef __WIN32OS2__
     3760  //@PF OwnerDraw does not need background clearing, it is supposed to be
     3761  //done by application itself.
     3762  if (!(lStyle & LVS_OWNERDRAWFIXED))
     3763  {
     3764#endif
     3765    /* clear the background of any part of the control that doesn't contain items */
     3766    SubtractRect(&rcTemp, &infoPtr->rcList, &infoPtr->rcView);
     3767    LISTVIEW_FillBackground(hwnd, hdc, &rcTemp);
     3768#ifdef __WIN32OS2__
     3769  }
     3770#endif
    37533771
    37543772  /* nothing to draw */
     
    92079225    }
    92089226  }
     9227#ifdef __WIN32OS2__
     9228  if(infoPtr->bDragInProcess) {
     9229      infoPtr->bDragInProcess = FALSE;
     9230  }
     9231#endif 
    92099232
    92109233  return 0;
     
    95569579    SendMessageW( hwnd, WM_CONTEXTMENU, (WPARAM) hwnd, MAKELPARAM(pt.x, pt.y));
    95579580  }
     9581
     9582#ifdef __WIN32OS2__
     9583  if(infoPtr->bDragInProcess) {
     9584      infoPtr->bDragInProcess = FALSE;
     9585  }
     9586#endif 
    95589587 
    95599588  return 0;
Note: See TracChangeset for help on using the changeset viewer.