Export (0) Print
Expand All
Expand Minimize

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  
);

clsid

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

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

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.

Header: afxole.h

Show:
© 2014 Microsoft