看 VC++Win Shell Programming
對win32 編程有點體會
了解了一些HIMAGELIST 這個win32結構
很多ImageList_XXX函數(shù)
還有就是IShellFolder這個接口
LPSHELLFOLDER
有很多SHXX函數(shù)用
今天來再更新一點
IShellFolder Interface 接口的成員
The IShellFolder interface is used to manage folders. It is exposed by all Shell namespace folder objects.
IShellFolder Members
BindToObject |
Retrieves an IShellFolder object for a subfolder.書上有講 |
BindToStorage |
Requests a pointer to an object's storage interface. |
CompareIDs |
Determines the relative order of two file objects or folders, given their item identifier lists. |
CreateViewObject |
Requests an object that can be used to obtain information from or interact with a folder object. |
EnumObjects |
Allows a client to determine the contents of a folder by creating an item identifier enumeration object and returning its IEnumIDList interface. The methods supported by that interface can then be used to enumerate the folder's contents.下面有IEnumIDList的成員 |
GetAttributesOf |
Retrieves the attributes of one or more file or folder objects contained in the object represented by IShellFolder. |
GetDisplayNameOf |
Retrieves the display name for the specified file object or subfolder. 書上有講 |
GetUIObjectOf |
Retrieves an OLE interface that can be used to carry out actions on the specified file objects or folders.書上有講 |
ParseDisplayName |
Translates a file object's or folder's display name into an item identifier list.書上有講 |
SetNameOf |
Sets the display name of a file object or subfolder, changing the item identifier in the process. |
IEnumIDList Interface
The IEnumIDList interface provides a standard set of methods that can be used to enumerate the pointers to item identifier lists (PIDLs) of the items in a Shell folder. When a folder's IShellFolder::EnumObjects method is called, it creates an enumeration object and passes a pointer to the object's IEnumIDList interface back to the caller.
IEnumIDList Members
Clone |
Creates a new item enumeration object with the same contents and state as the current one. |
Next |
Retrieves the specified number of item identifiers in the enumeration sequence and advances the current position by the number of items retrieved. |
Reset |
Returns to the beginning of the enumeration sequence. |
Skip |
Skips over the specified number of elements in the enumeration sequence. |