This method is specific to version 3, or higher, of the OS/2 operating system.
This class method sets the icon handle for a given object.
#define INCL_WINWORKPLACE #include <os2.h> M_WPObject *somSelf; /* Pointer to the WPObject class object. */ HPOINTER hptrNewIcon; /* Icon handle to be set for the object. */ BOOL rc; /* Success indicator. */ rc = _wpclsSetIcon(somSelf, hptrNewIcon);