|
IParseDisplayName
The IParseDisplayName interface parses a human-readable display name string to convert it into a
moniker. Display name parsing is necessary when the end user inputs a string to
identify a component, as in the following situations:
- A compound document application that supports linked components typically
supports the Edit:Links... dialog. Through this dialog, the end user can enter a
display name to specify a new link source for a specified linked component. The
compound document needs to have this input string converted into a moniker.
- A script language such as the macro language of a spreadsheet can allow
textual references to a component. The language's interpreter needs to have such a
reference converted into a moniker in order to execute the macro.
When to Implement
Compound document applications that support links to embedded components or to
pseudo-objects within their documents must provide an implementation of the IOleItemContainer interface, which is derived indirectly from IParseDisplayName. In effect, such a compound document is providing a namespace for identifying
its internal components; and its IOleItemContainer implementation (which includes the IParseDisplayName implementation) is the interface through which another application can access
this namespace. Alternatively, the compound document application can implement IParseDisplayName as part of its class object, which is accessible through the CoGetClassObject function.
When to Use
If you are implementing your own moniker class, you might need to use this
interface from your implementation of IMoniker::ParseDisplayName. If you call the MkParseDisplayName function, you are indirectly using IParseDisplayName.
Methods in VTable Order
IParseDisplayName Method
| Description
|
See Also
IMoniker::ParseDisplayName, IOleItemContainer, MkParseDisplayName
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|