wpQueryIcon
Appearance
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);