Freigeben über


COleClientItem::GetIconFromRegistry

Call this member function to retrieve a handle to an icon resource associated with the server of a particular CLSID.

HICON GetIconFromRegistry( ) const; 
static HICON GetIconFromRegistry(
   CLSID& clsid 
);

Parameters

  • clsid
    A reference to the CLSID for the server associated with the icon.

Return Value

A valid handle to the icon resource, or NULL if the server's icon, or a default icon, can't be found.

Remarks

This member function will not start the server or obtain an icon dynamically, even if the server is already running. Instead, this member function opens the server's executable image and retrieves the static icon associated with the server as it was registered.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

Other Resources

COleClientItem Members