Changeset 10125 for trunk/src/comctl32/listview.c
- Timestamp:
- May 28, 2003, 10:53:38 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/listview.c
r10115 r10125 278 278 WCHAR szSearchParam[ MAX_PATH ]; 279 279 BOOL bIsDrawing; 280 #ifdef __WIN32OS2__ 281 BOOL bDragInProcess; 282 #endif 280 283 } LISTVIEW_INFO; 281 284 … … 2400 2403 if (infoPtr->himlState || infoPtr->himlSmall) 2401 2404 nItemHeight += HEIGHT_PADDING; 2405 2406 #ifdef __WIN32OS2__ 2407 if(infoPtr->dwStyle & LVS_OWNERDRAWFIXED) { 2408 /* Get item height */ 2409 2410 MEASUREITEMSTRUCT mis; 2411 UINT id = GetWindowLongA(infoPtr->hwndSelf,GWL_ID); 2412 2413 mis.CtlType = ODT_LISTVIEW; 2414 mis.CtlID = id; 2415 mis.itemID = 0; 2416 mis.itemData = 0; //TODO:!!!! 2417 mis.itemHeight = nItemHeight; 2418 SendMessageA(GetParent(infoPtr->hwndSelf), WM_MEASUREITEM, id, (LPARAM)&mis ); 2419 nItemHeight = mis.itemHeight; 2420 } 2421 #endif 2402 2422 } 2403 2423 … … 3168 3188 } 3169 3189 } 3170 3190 #ifdef __WIN32OS2__ 3191 else 3192 if(!infoPtr->bDragInProcess && (infoPtr->bLButtonDown || infoPtr->bRButtonDown) && infoPtr->nSelectionMark != -1) { 3193 NMLISTVIEW nml = {0}; 3194 nml.iItem = infoPtr->nSelectionMark; 3195 notify_listview(infoPtr, (infoPtr->bLButtonDown) ? LVN_BEGINDRAG : LVN_BEGINRDRAG, &nml); 3196 infoPtr->bDragInProcess = TRUE; 3197 } 3198 #endif 3171 3199 return 0; 3172 3200 } … … 5844 5872 SelectObject(hdc, hOldFont); 5845 5873 ReleaseDC(infoPtr->hwndSelf, hdc); 5874 #ifdef __WIN32OS2__ 5875 if(infoPtr->dwStyle & LVS_OWNERDRAWFIXED) { 5876 /* Get item width */ 5877 5878 MEASUREITEMSTRUCT mis; 5879 UINT id = GetWindowLongA(infoPtr->hwndSelf,GWL_ID); 5880 mis.CtlType = ODT_LISTVIEW; 5881 mis.CtlID = id; 5882 mis.itemID = 0; 5883 mis.itemData = 0; //TODO:!!!! 5884 mis.itemHeight = 0; 5885 mis.itemWidth = 0; 5886 if (isW) 5887 SendMessageW(GetParent(infoPtr->hwndSelf), WM_MEASUREITEM, id, (LPARAM)&mis ); 5888 else 5889 SendMessageA(GetParent(infoPtr->hwndSelf), WM_MEASUREITEM, id, (LPARAM)&mis ); 5890 stringSize.cx = (mis.itemWidth) ? mis.itemWidth : infoPtr->nItemWidth; 5891 } 5892 #endif 5846 5893 } 5847 5894 return stringSize.cx; … … 7686 7733 nmKeyDown.wVKey = nVirtualKey; 7687 7734 nmKeyDown.flags = 0; 7735 #ifdef __WIN32OS2__ 7736 if(notify_hdr(infoPtr, LVN_KEYDOWN, &nmKeyDown.hdr) == TRUE) 7737 return 0; //application processed this key press 7738 #else 7688 7739 notify_hdr(infoPtr, LVN_KEYDOWN, &nmKeyDown.hdr); 7740 #endif 7689 7741 7690 7742 switch (nVirtualKey) … … 7911 7963 } 7912 7964 7965 #ifdef __WIN32OS2__ 7966 //SvL: Send WM_COMMAND as well. (also done by NT's comctl32) 7967 SendMessageA(GetParent(infoPtr->hwndSelf), WM_COMMAND, (1<<16) | GetWindowLongW(infoPtr->hwndSelf, GWL_ID), infoPtr->hwndSelf); 7968 #endif 7969 7913 7970 return 0; 7914 7971 } … … 7947 8004 if(lvHitTestInfo.iItem == infoPtr->nEditLabelItem && (lvHitTestInfo.flags & LVHT_ONITEMLABEL)) 7948 8005 LISTVIEW_EditLabelT(infoPtr, lvHitTestInfo.iItem, TRUE); 8006 8007 #ifdef __WIN32OS2__ 8008 if(infoPtr->bDragInProcess) { 8009 infoPtr->bDragInProcess = FALSE; 8010 } 8011 #endif 7949 8012 7950 8013 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.