Changeset 3250 for trunk/src/shell32/shlview.cpp
- Timestamp:
- Mar 27, 2000, 5:09:22 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shlview.cpp
r3243 r3250 1 /* $Id: shlview.cpp,v 1. 9 2000-03-26 16:34:54cbratschi Exp $ */1 /* $Id: shlview.cpp,v 1.10 2000-03-27 15:09:22 cbratschi Exp $ */ 2 2 /* 3 3 * ShellView … … 17 17 * buily according to the columns shown. 18 18 * 19 * FIXME: Load/Save the view state from/into the stream provi ed by19 * FIXME: Load/Save the view state from/into the stream provided by 20 20 * the ShellBrowser 21 21 * … … 496 496 LPITEMIDLIST pidl; 497 497 DWORD dwFetched; 498 UINT i ;498 UINT i,iPos; 499 499 LVITEMA lvItem; 500 500 HRESULT hRes; … … 502 502 503 503 //CB: really slow, even without debug information 504 //DecreaseLogCount();505 504 TRACE("%p\n",This); 506 505 … … 517 516 } 518 517 519 //CB: ILClone calls520 518 /* create a pointer array */ 521 hdpa = pDPA_Create( 64);519 hdpa = pDPA_Create(1024); 522 520 if (!hdpa) 523 521 { … … 526 524 527 525 /* copy the items into the array*/ 528 while((S_OK == IEnumIDList_Next(pEnumIDList,1, &pidl,&dwFetched)) && dwFetched)526 while((S_OK == IEnumIDList_Next(pEnumIDList,1,(LPITEMIDLIST*)&pidl,&dwFetched)) && dwFetched) 529 527 { 530 528 if (pDPA_InsertPtr(hdpa, 0x7fff, pidl) == -1) … … 534 532 } 535 533 536 //CB: only Get* calls537 534 /*sort the array*/ 538 535 pDPA_Sort(hdpa, (PFNDPACOMPARE)ShellView_CompareItems, (LPARAM)This->pSFParent); … … 545 542 lvItem.pszText = LPSTR_TEXTCALLBACKA; /*get text on a callback basis*/ 546 543 lvItem.iImage = I_IMAGECALLBACK; /*get the image on a callback basis*/ 544 iPos = ListView_GetItemCount(This->hWndList); 547 545 548 546 for (i = 0; i < DPA_GetPtrCount(hdpa); ++i) /* DPA_GetPtrCount is a macro*/ … … 552 550 if (IncludeObject(This, pidl) == S_OK) /* in a commdlg This works as a filemask*/ 553 551 { 554 lvItem.iItem = i ; /*add the item to the end of the list*/552 lvItem.iItem = iPos; /*add the item to the end of the list*/ 555 553 lvItem.lParam = (LPARAM)pidl; /*set the item's data*/ 556 554 ListView_InsertItemA(This->hWndList, &lvItem); 555 iPos++; 557 556 } 558 557 else … … 565 564 IEnumIDList_Release(pEnumIDList); /* destroy the list*/ 566 565 pDPA_Destroy(hdpa); 567 //IncreaseLogCount();568 566 569 567 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.