Jump to content

WpQueryNextIconPos: Difference between revisions

From EDM2
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..."
 
(No difference)

Latest revision as of 02:01, 17 November 2025

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