Jump to content

wpQueryNextIconPos

From EDM2
Revision as of 02:01, 17 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryNextIconPos}} This instance method is called to allow the folder to query the next icon position. ==Syntax== _wpQueryNextIconPos(somSelf) ==Parameters== ;''somSelf'' (WPFolder *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPFolder. ==Returns== ;''pptl'' (PPOINTL) - returns :Pointer to the next position at which icons will be inserted. ==How to Override== This method is generall...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This instance method is called to allow the folder to query the next icon position.

Syntax

_wpQueryNextIconPos(somSelf)

Parameters

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

Returns

pptl (PPOINTL) - returns
Pointer to the next position at which icons will be inserted.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time in order to determine the next position at which objects will be inserted in the file.

Remarks

The next icon is the next available **parking space** within the folder's client area.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */
PPOINTL *pptl; /* Pointer to the next position at which icons will be inserted. */

pptl = _wpQueryNextIconPos(somSelf);

Related Methods