Changeset 2126 for trunk/src/comctl32/listview.c
- Timestamp:
- Dec 18, 1999, 9:57:01 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/listview.c
r1775 r2126 19 19 * 20 20 * Data structure: 21 * LISTVIEW_SetItemCount : empty stub21 * LISTVIEW_SetItemCount : not completed 22 22 * 23 23 * Unicode: … … 34 34 * LISTVIEW_GetISearchString : not implemented 35 35 * LISTVIEW_GetBkImage : not implemented 36 * LISTVIEW_GetColumnOrderArray : not implemented37 * LISTVIEW_SetColumnOrderArray : not implemented36 * LISTVIEW_GetColumnOrderArray : simple hack only 37 * LISTVIEW_SetColumnOrderArray : simple hack only 38 38 * LISTVIEW_Arrange : empty stub 39 39 * LISTVIEW_ApproximateViewRect : incomplete … … 43 43 */ 44 44 45 /* WINE 991 114level */45 /* WINE 991212 level */ 46 46 47 47 #include <string.h> … … 2038 2038 nLast = nItem + LISTVIEW_GetCountPerColumn(hwnd) + 1; 2039 2039 nLast = min(nLast, GETITEMCOUNT(infoPtr)); 2040 2041 //AH required for Odin? 2042 #if 0 2043 /* send cache hint notification */ 2044 if (GetWindowLongA(hwnd,GWL_STYLE) & LVS_OWNERDATA) 2045 { 2046 NMLVCACHEHINT nmlv; 2047 2048 nmlv.hdr.hwndFrom = hwnd; 2049 nmlv.hdr.idFrom = GetWindowLongA(hwnd,GWL_ID); 2050 nmlv.hdr.code = LVN_ODCACHEHINT; 2051 nmlv.iFrom = nItem; 2052 nmlv.iTo = nLast; 2053 2054 SendMessageA(GetParent(hwnd), WM_NOTIFY, (WPARAM)nmlv.hdr.idFrom, 2055 (LPARAM)&nmlv); 2056 } 2057 #endif 2058 2040 2059 for (; nItem < nLast; nItem++) 2041 2060 { … … 3332 3351 3333 3352 /* LISTVIEW_GetColumnW */ 3334 /* LISTVIEW_GetColumnOrderArray */ 3353 3354 static LRESULT LISTVIEW_GetColumnOrderArray(HWND hwnd, INT iCount, LPINT lpiArray) 3355 { 3356 /* LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0); */ 3357 INT i; 3358 3359 if (!lpiArray) 3360 return FALSE; 3361 3362 /* little hack */ 3363 for (i = 0; i < iCount; i++) 3364 lpiArray[i] = i; 3365 3366 return TRUE; 3367 } 3335 3368 3336 3369 /*** … … 3573 3606 } 3574 3607 strncpy(lpLVItem->pszText, dispInfo.item.pszText, lpLVItem->cchTextMax); 3608 lpLVItem->pszText[lpLVItem->cchTextMax-1]='\0'; 3575 3609 } 3576 3610 else if (lpLVItem->mask & LVIF_TEXT) 3577 3611 { 3578 3612 strncpy(lpLVItem->pszText, lpItem->pszText, lpLVItem->cchTextMax); 3613 lpLVItem->pszText[lpLVItem->cchTextMax-1]='\0'; 3579 3614 } 3580 3615 … … 3668 3703 } 3669 3704 strncpy(lpLVItem->pszText, dispInfo.item.pszText, lpLVItem->cchTextMax); 3705 lpLVItem->pszText[lpLVItem->cchTextMax-1]='\0'; 3670 3706 } 3671 3707 else if (lpLVItem->mask & LVIF_TEXT) 3672 3708 { 3673 3709 strncpy(lpLVItem->pszText, lpSubItem->pszText, lpLVItem->cchTextMax); 3710 lpLVItem->pszText[lpLVItem->cchTextMax-1]='\0'; 3674 3711 } 3675 3712 } … … 5125 5162 5126 5163 /* LISTVIEW_SetColumnW */ 5127 /* LISTVIEW_SetColumnOrderArray */ 5164 5165 /*** 5166 * DESCRIPTION: 5167 * Sets the column order array 5168 * 5169 * PARAMETERS: 5170 * [I] HWND : window handle 5171 * [I] INT : number of elements in column order array 5172 * [I] INT : pointer to column order array 5173 * 5174 * RETURN: 5175 * SUCCESS : TRUE 5176 * FAILURE : FALSE 5177 */ 5178 static LRESULT LISTVIEW_SetColumnOrderArray(HWND hwnd, INT iCount, LPINT lpiArray) 5179 { 5180 /* LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0); */ 5181 5182 // FIXME("iCount %d lpiArray %p\n", iCount, lpiArray); 5183 5184 if (!lpiArray) 5185 return FALSE; 5186 5187 return TRUE; 5188 } 5128 5189 5129 5190 /*** … … 5318 5379 * PARAMETER(S): 5319 5380 * [I] HWND : window handle 5320 * [I] INT : item count (pr jected number of items)5381 * [I] INT : item count (projected number of items) 5321 5382 * [I] DWORD : update flags 5322 5383 * … … 5328 5389 { 5329 5390 LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO*)GetWindowLongA(hwnd, 0); 5391 5330 5392 // FIXME("(%d %08lx)empty stub!\n", nItems, dwFlags); 5393 5331 5394 if (nItems == 0) 5332 5395 return LISTVIEW_DeleteAllItems (hwnd); 5396 5397 if (GetWindowLongA(hwnd, GWL_STYLE) & LVS_OWNERDATA) 5398 { 5399 // FIXME("LVS_OWNERDATA is set!\n"); 5400 } 5401 else 5402 { 5333 5403 if (nItems > GETITEMCOUNT(infoPtr)) 5334 5404 { 5335 5405 /* append items */ 5336 5406 // FIXME("append items\n"); 5407 5337 5408 } 5338 5409 else if (nItems < GETITEMCOUNT(infoPtr)) … … 5340 5411 /* remove items */ 5341 5412 // FIXME("remove items\n"); 5342 } 5413 5414 } 5415 } 5416 5343 5417 return TRUE; 5344 5418 } … … 6950 7024 6951 7025 case LVM_GETCOLUMNORDERARRAY: 6952 //FIXME("Unimplemented msg LVM_GETCOLUMNORDERARRAY\n"); 6953 return 0; 6954 7026 return LISTVIEW_GetColumnOrderArray(hwnd, (INT)wParam, (LPINT)lParam); 6955 7027 6956 7028 case LVM_GETCOLUMNWIDTH: … … 7082 7154 7083 7155 case LVM_SETCOLUMNORDERARRAY: 7084 //FIXME("Unimplemented msg LVM_SETCOLUMNORDERARRAY\n"); 7085 return 0; 7156 return LISTVIEW_SetColumnOrderArray(hwnd, (INT)wParam, (LPINT)lParam); 7086 7157 7087 7158 case LVM_SETCOLUMNWIDTH:
Note:
See TracChangeset
for help on using the changeset viewer.