- Timestamp:
- Mar 22, 2000, 5:55:52 PM (25 years ago)
- Location:
- trunk/src/shell32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shellpath.cpp
r2237 r3193 1 /* $Id: shellpath.cpp,v 1. 5 1999-12-28 23:16:33 sandervlExp $ */1 /* $Id: shellpath.cpp,v 1.6 2000-03-22 16:55:51 cbratschi Exp $ */ 2 2 3 3 /* … … 817 817 ODINFUNCTION1(HRESULT, PathGetDriveNumberW, 818 818 LPWSTR, u) 819 { 819 { 820 820 return 0; 821 821 } … … 1207 1207 LPSTR WINAPI PathRemoveBackslashA(LPSTR lpPath) 1208 1208 { 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1209 LPSTR temp = lpPath; 1210 LPSTR prev = lpPath; 1211 1212 while (*temp) 1213 { 1214 prev = temp++; 1215 } 1216 if ( *prev == (CHAR)'\\') 1217 { 1218 *prev = (CHAR)'\0'; 1219 } 1220 1221 return prev; 1222 1222 } 1223 1223 1224 1224 LPWSTR WINAPI PathRemoveBackslashW(LPWSTR lpPath) 1225 1225 { 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 } 1240 1226 LPWSTR temp = lpPath; 1227 LPWSTR prev = lpPath; 1228 1229 while (*temp) 1230 { 1231 prev = temp++; 1232 } 1233 if ( *prev == (WCHAR)'\\') 1234 { 1235 *prev = (WCHAR)'\0'; 1236 } 1237 1238 return prev; 1239 } 1240 -
trunk/src/shell32/shlfolder.cpp
r2358 r3193 1 /* $Id: shlfolder.cpp,v 1. 6 2000-01-08 04:37:01 phallerExp $ */1 /* $Id: shlfolder.cpp,v 1.7 2000-03-22 16:55:52 cbratschi Exp $ */ 2 2 /* 3 3 * Shell Folder stuff … … 177 177 pdump(pidl); 178 178 179 if ((pidlFirst = ILCloneFirst(pidl))) 179 pidlFirst = ILCloneFirst(pidl); 180 if (pidlFirst) 180 181 { 181 182 hr = IShellFolder_BindToObject(psf, pidlFirst, NULL, &IID_IShellFolder, (LPVOID*)&psfChild); … … 562 563 *ppvOut = NULL; 563 564 564 if ((iid=_ILGetGUIDPointer(pidl))) 565 iid = _ILGetGUIDPointer(pidl); 566 if (iid) 565 567 { 566 568 /* we have to create a alien folder */ … … 1317 1319 *ppvOut = NULL; 1318 1320 1319 if ((clsid=_ILGetGUIDPointer(pidl))) 1321 clsid = _ILGetGUIDPointer(pidl); 1322 if (clsid) 1320 1323 { 1321 1324 if ( IsEqualIID(clsid, &IID_MyComputer)) … … 1419 1422 pdump (*apidl); 1420 1423 1421 if ((clsid=_ILGetGUIDPointer(*apidl))) 1424 clsid = _ILGetGUIDPointer(*apidl); 1425 if (clsid) 1422 1426 { 1423 1427 if (IsEqualIID(clsid, &IID_MyComputer)) … … 1871 1875 *rgfInOut &= 0xf0000144; 1872 1876 goto next; 1873 } 1874 else if ((clsid=_ILGetGUIDPointer(*apidl)))1875 {1876 if ( HCR_GetFolderAttributes(clsid, &attributes))1877 } else 1878 { 1879 clsid = _ILGetGUIDPointer(*apidl); 1880 if (clsid) 1877 1881 { 1878 *rgfInOut &= attributes; 1879 goto next; 1882 if (HCR_GetFolderAttributes(clsid, &attributes)) 1883 { 1884 *rgfInOut &= attributes; 1885 goto next; 1886 } 1880 1887 } 1881 1888 } -
trunk/src/shell32/shlview.cpp
r2354 r3193 1 /* $Id: shlview.cpp,v 1. 6 2000-01-08 02:24:13 phallerExp $ */1 /* $Id: shlview.cpp,v 1.7 2000-03-22 16:55:52 cbratschi Exp $ */ 2 2 /* 3 3 * ShellView … … 309 309 { 310 310 LVCOLUMNA lvColumn; 311 SHELLDETAILS 312 int 313 char 311 SHELLDETAILS sd; 312 int i; 313 char szTemp[50]; 314 314 315 315 TRACE("%p\n",This); … … 323 323 { 324 324 for (i=0; 1; i++) 325 { 325 { 326 326 if (!SUCCEEDED(IShellFolder2_GetDetailsOf(This->pSF2Parent, NULL, i, &sd))) 327 328 329 330 331 327 break; 328 lvColumn.fmt = sd.fmt; 329 lvColumn.cx = sd.cxChar*8; /* chars->pixel */ 330 StrRetToStrNA( szTemp, 50, &sd.str, NULL); 331 ListView_InsertColumnA(This->hWndList, i, &lvColumn); 332 332 } 333 333 } … … 518 518 ZeroMemory(&lvItem, sizeof(lvItem)); /* create the listviewitem*/ 519 519 lvItem.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM; /*set the mask*/ 520 lvItem.iItem = ListView_GetItemCount(This->hWndList); /*add the item to the end of the list*/520 lvItem.iItem = i; /*add the item to the end of the list*/ 521 521 lvItem.lParam = (LPARAM) pidl; /*set the item's data*/ 522 522 lvItem.pszText = LPSTR_TEXTCALLBACKA; /*get text on a callback basis*/ … … 1073 1073 pidl = (LPITEMIDLIST)lpdi->item.lParam; 1074 1074 1075 if(lpdi->item.mask & LVIF_TEXT)/* text requested */1076 1077 1078 1079 1080 1081 1082 TRACE("-- text=%s\n",lpdi->item.pszText); 1083 1084 1085 1086 1087 1088 1089 if(lpdi->item.mask & LVIF_IMAGE)/* image requested */1075 if(lpdi->item.mask & LVIF_TEXT) /* text requested */ 1076 { 1077 if (This->pSF2Parent) 1078 { 1079 SHELLDETAILS sd; 1080 IShellFolder2_GetDetailsOf(This->pSF2Parent, pidl, lpdi->item.iSubItem, &sd); 1081 StrRetToStrNA( lpdi->item.pszText, lpdi->item.cchTextMax, &sd.str, NULL); 1082 TRACE("-- text=%s\n",lpdi->item.pszText); 1083 } 1084 else 1085 { 1086 FIXME("no SF2\n"); 1087 } 1088 } 1089 if(lpdi->item.mask & LVIF_IMAGE) /* image requested */ 1090 1090 { 1091 1091 lpdi->item.iImage = SHMapPIDLToSystemImageListIndex(This->pSFParent, pidl, 0); 1092 } 1092 } 1093 1093 break; 1094 1094
Note:
See TracChangeset
for help on using the changeset viewer.