Jump to content

wpSetIconData

From EDM2

This instance method is called to allow the object to permanently set its current icon.

Syntax

_wpSetIconData(somSelf, pIconInfo)

Parameters

somSelf (WPObject *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPObject.
pIconInfo (PICONINFO) - input
Pointer to an ICONINFO structure containing an icon specification.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred.

Usage

This method can be called at any time in order to permanently change the icon for this object. To temporarily change or refresh the icon for this object, the wpSetIcon method should be called.

How to Override

This method is generally not overridden.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject      *somSelf;     /* Pointer to the object on which the method is being invoked. */
PICONINFO     pIconInfo;    /* Pointer to an ICONINFO structure containing an icon specification. */
BOOL          rc;           /* Success indicator. */

rc = _wpSetIconData(somSelf, pIconInfo);

Related Methods