Changeset 3257 for trunk/src/shell32/shlview.cpp
- Timestamp:
- Mar 28, 2000, 5:28:54 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shlview.cpp
r3250 r3257 1 /* $Id: shlview.cpp,v 1.1 0 2000-03-27 15:09:22cbratschi Exp $ */1 /* $Id: shlview.cpp,v 1.11 2000-03-28 15:28:54 cbratschi Exp $ */ 2 2 /* 3 3 * ShellView … … 115 115 #define FILEDIALOG_COLUMN_TIME 3 116 116 #define FILEDIALOG_COLUMN_ATTRIB 4 117 //CB: todo: drive view!118 117 119 118 /*menu items */ … … 184 183 */ 185 184 static BOOL IsInCommDlg(IShellViewImpl * This) 186 { return(This->pCommDlgBrowser != NULL); 185 { 186 return(This->pCommDlgBrowser != NULL); 187 187 } 188 188 … … 502 502 503 503 //CB: really slow, even without debug information 504 // too much transfers 504 505 TRACE("%p\n",This); 505 506 … … 507 508 // OS/2's APIs can read more than one file per call -> much faster 508 509 // -> add a new API for faster handling 510 509 511 /* get the itemlist from the shfolder*/ 510 512 hRes = IShellFolder_EnumObjects(This->pSFParent,This->hWnd, SHCONTF_NONFOLDERS | SHCONTF_FOLDERS, &pEnumIDList); … … 526 528 while((S_OK == IEnumIDList_Next(pEnumIDList,1,(LPITEMIDLIST*)&pidl,&dwFetched)) && dwFetched) 527 529 { 528 if ( pDPA_InsertPtr(hdpa, 0x7fff, pidl) == -1)530 if (IncludeObject(This,pidl) == S_OK) /* in a commdlg This works as a filemask*/ 529 531 { 530 SHFree(pidl); 531 } 532 if (pDPA_InsertPtr(hdpa, 0x7fff, pidl) == -1) 533 { 534 SHFree(pidl); 535 } 536 } else SHFree(pidl); 532 537 } 533 538 … … 548 553 pidl = (LPITEMIDLIST)DPA_GetPtr(hdpa, i); 549 554 550 if (IncludeObject(This, pidl) == S_OK) /* in a commdlg This works as a filemask*/ 551 { 552 lvItem.iItem = iPos; /*add the item to the end of the list*/ 553 lvItem.lParam = (LPARAM)pidl; /*set the item's data*/ 554 ListView_InsertItemA(This->hWndList, &lvItem); 555 iPos++; 556 } 557 else 558 SHFree(pidl); /* the listview has the COPY*/ 555 lvItem.iItem = iPos; /*add the item to the end of the list*/ 556 lvItem.lParam = (LPARAM)pidl; /*set the item's data*/ 557 ListView_InsertItemA(This->hWndList, &lvItem); 558 iPos++; 559 559 } 560 560
Note:
See TracChangeset
for help on using the changeset viewer.