Jump to content

wpSetProgIcon

From EDM2

WPProgram

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method sets the visual icon for the current program to the appropriate default or custom icon.

Syntax

_wpSetProgIcon(somSelf, pfeal)

Parameters

somSelf (WPProgram *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPProgram.
pfeal (PFEA2LIST) - input
Pointer to a list of FEA2 structures containing icon extended attributes (EAs).
A value of **NULL** indicates that icon EAs are not available.

Returns

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

How to Override

This method is generally not overridden.

Usage

This method can be called at any time.

Remarks

This method is not covered in the provided text.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPProgram *somSelf; /* Pointer to the object on which the method is being invoked. */
PFEA2LIST pfeal; /* Pointer to a list of FEA2 structures containing icon extended attributes (EAs). */
BOOL rc; /* Success indicator. */

rc = _wpSetProgIcon(somSelf, pfeal);

Related Methods


WPPrograFile

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method sets the visual icon for this program to the appropriate custom or default icon.

Syntax

_wpSetProgIcon(somSelf, pfeal)

Parameters

somSelf (WPProgramFile *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPProgramFile.
pfeal (PFEA2LIST) - input
Pointer to a list.
Points to a list of FEA2 structures containing icon extended attributes (EAs). A value of **NULL** indicates that icon EAs are not available.

Returns

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

How to Override

This method is generally not overridden.

Usage

This method can be called at any time to set an icon for a given program file.

Remarks

This method is not covered in the provided text.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPProgramFile *somSelf; /* Pointer to the object on which the method is being invoked. */
PFEA2LIST pfeal; /* Pointer to a list. */
BOOL rc; /* Success indicator. */

rc = _wpSetProgIcon(somSelf, pfeal);

Related Methods