IQueryInfoIQueryInfo*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IPersistFolder2::GetCurFolder
*Next Topic: IQueryInfo::GetInfoFlags

IQueryInfo


The shell uses the IQueryInfo interface to retrieve flags and info tip information for an item that resides in an IShellFolder implementation. Info tips are usually displayed inside of a tooltip control.

When to Implement

You implement IQueryInfo to provide flags and text information that differs from the normal text that is displayed for an item in a folder. For example, if your folder contained file objects, you could use the info tip to provide the entire path and file name for the item rather than just the file name.

This interface is obtained by calling IShellFolder::GetUIObjectOf and passing IID_IQueryInfo for the interface identifier. The item for which info tip information is being requested is contained in the apidl argument of the IShellFolder::GetUIObjectOf call. If IQueryInfo is not supplied by the folder, the shell will use the standard display text in the info tip.

When to Use

In most cases, you do not use this interface directly. The shell will use this interface when it requires additional information to display inside of an info tip. However, you can use IQueryInfo directly if you want to obtain info tip information from another object.
IQueryInfo Methods Description
GetInfoFlags Retrieves the information flags for an item.
GetInfoTip Retrieves the info tip text for an item.

Note This interface is only supported in shell versions 4.71 and later.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.