看 VC++Win Shell Programming
对win32 编程有点体会
了解了一些HIMAGELIST 这个win32结构
很多ImageList_XXX函数
还有就是IShellFolder这个接口
LPSHELLFOLDER
有很多SHXX函数用
今天来再更新一点
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. |