|
OleUICanConvertOrActivateAs
Determines if there are any OLE object classes in the registry that can be
used to convert or activate the specified CLSID from.
BOOL OleUICanConvertOrActivateAs(
REFCLSID rClsid,
| //CLSID of the specified class
| BOOL fIsLinkedObject,
| //Indicates whether the original object was a linked object
| WORD wFormat
| //The format of the original class
| );
|
|
Parameters
rClsid
Points to the CLSID of the specified class.
fIsLinkedObject
TRUE if the original object is a linked object; FALSE otherwise.
wFormat
Specifies the format of the original class.
Return Values
TRUE
The specified class can be converted to or activated as another class.
FALSE
The specified class cannot be converted to or activated as another class.
Comments
Notes to Implementors
OleUICanConvertOrActivateAs searches the Registry for classes that include wFormat in their \Conversion\Readable\Main, \Conversion\ReadWriteable\Main, and
\DataFormats\DefaultFile entries.
This function is useful for determining if a Convert... menu item should be
disabled. If the CF_DISABLEDISPLAYASICON flag is specified in the call to OleUIConvert, then the Convert... menu item should be enabled only if OleUICanConvertOrActivateAs returns TRUE.
See Also
OleUIConvert
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
|