Jump to content

wpclsSetIconData

From EDM2
Revision as of 22:00, 25 May 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpclsSetIconData}} This class method sets the icon information for a given object. Note: This method is available in version 3 or higher of the OS/2 operating system. ==Syntax== _wpclsSetIconData(somSelf, pIconInfo); ==Parameters== ;''somSelf'' (M_WPObject *) - input :Pointer to the WPObject class object. ;''pIconInfo'' (PICONINFO) - input :Pointer to the icon information structure. ==Returns== ;''rc'' (BOOL) - returns: Success indic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This class method sets the icon information for a given object. Note: This method is available in version 3 or higher of the OS/2 operating system.

Syntax

_wpclsSetIconData(somSelf, pIconInfo);

Parameters

somSelf (M_WPObject *) - input
Pointer to the WPObject class object.
pIconInfo (PICONINFO) - input
Pointer to the icon information structure.

Returns

rc (BOOL) - returns
Success indicator
TRUE – Successful completion.
FALSE – An error occurred.

Usage

  • This method can be called at any time to set icon information.

How to Override

  • (No override guidance provided; assumed to be generally not overridden.)

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

M_WPObject     *somSelf;    /*  Pointer to the WPObject class object. */
PICONINFO       pIconInfo;  /*  Pointer to the icon information structure. */
BOOL            rc;         /*  Success indicator. */

rc = _wpclsSetIconData(somSelf, pIconInfo);

Related Methods