WpQueryDefaultIconPos: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:wpQueryDefaultIconPos}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method returns the default icon position of the current object within a folder. ==Syntax== _wpQueryDefaultIconPos(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) - output :Pointer to..." |
(No difference)
|
Latest revision as of 01:58, 17 November 2025
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method returns the default icon position of the current object within a folder.
Syntax
_wpQueryDefaultIconPos(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) - output
- 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 return the default icon position within a folder.
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 = _wpQueryDefaultIconPos(somSelf, pPointl);