Jump to content

WpclsSetIconData: Difference between revisions

From EDM2
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..."
 
(No difference)

Latest revision as of 22:00, 25 May 2025

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