Jump to content

wpQueryIcon

From EDM2
Revision as of 18:33, 1 September 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryIcon}} This instance method is called to allow the object to query its current icon. ==Syntax== _wpQueryIcon(somSelf) ==Parameters== ;''somSelf'' (WPObject *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPObject. ==Returns== ;''hptrQryIcon'' (HPOINTER) - returns :Handle to an icon. :A return value of NULLHANDLE indicates that an error occurred. ==Usage== This method can be called at...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Syntax

_wpQueryIcon(somSelf)

Parameters

somSelf (WPObject *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPObject.

Returns

hptrQryIcon (HPOINTER) - returns
Handle to an icon.
A return value of NULLHANDLE indicates that an error occurred.

Usage

This method can be called at any time in order to get the handle to the current icon for this object.

How to Override

This method is generally not overridden. The default icon for a class is typically set from an override of wpclsQueryIcon and the instance's icon may be altered with wpSetIcon.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject      *somSelf;        /* Pointer to the object on which the method is being invoked. */
HPOINTER      hptrQryIcon;     /* Handle to an icon. */

hptrQryIcon = _wpQueryIcon(somSelf);

Related Methods