- Timestamp:
- Jun 20, 2002, 9:18:12 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/listview.c
r8535 r8739 148 148 POINT scrollStep; //in pixels 149 149 DWORD internalFlags; 150 BOOL bDragInProcess; 150 151 #endif 151 152 HWND hwndSelf; … … 2423 2424 } 2424 2425 } 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 2426 2435 return 0; 2427 2436 } … … 3748 3757 FullSelected = infoPtr->dwExStyle & LVS_EX_FULLROWSELECT; 3749 3758 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 3753 3771 3754 3772 /* nothing to draw */ … … 9207 9225 } 9208 9226 } 9227 #ifdef __WIN32OS2__ 9228 if(infoPtr->bDragInProcess) { 9229 infoPtr->bDragInProcess = FALSE; 9230 } 9231 #endif 9209 9232 9210 9233 return 0; … … 9556 9579 SendMessageW( hwnd, WM_CONTEXTMENU, (WPARAM) hwnd, MAKELPARAM(pt.x, pt.y)); 9557 9580 } 9581 9582 #ifdef __WIN32OS2__ 9583 if(infoPtr->bDragInProcess) { 9584 infoPtr->bDragInProcess = FALSE; 9585 } 9586 #endif 9558 9587 9559 9588 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.