wpSetDefaultIconPos
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method is called to set the default icon position of an object within a folder.
Syntax
_wpSetDefaultIconPos(somSelf, pPointl)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
- pPointl (PPOINTL) - input
- Pointer to the coordinates of the default icon position. The **x** and **y** values represent the position in the object's folder in **percentage coordinates**.
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 the default icon position.
Remarks
Refer to wpSetup for more information about the initial icon position (ICONPOS).
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ PPOINTL *pPointl; /* Pointer to the coordinates of the default icon position. */ BOOL rc; /* Success indicator. */ rc = _wpSetDefaultIconPos(somSelf, pPointl);