Jump to content

GpiSetPickAperturePosition

From EDM2
Revision as of 16:41, 25 February 2017 by Martini (talk | contribs) (Created page with "This function sets the center of the pick aperture, in presentation page space, for subsequent nonretained correlation operations. ==Syntax== <PRE> #define INCL_GPICORRELATIO...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function sets the center of the pick aperture, in presentation page space, for subsequent nonretained correlation operations.

Syntax

#define INCL_GPICORRELATION /* Or use INCL_GPI, INCL_PM, */
#include <os2.h>

HPS hps;            /* Presentation-space handle. */
PPOINTL pptlPick;   /* Center of the pick aperture. */
BOOL rc;            /* Success indicator. */

rc = GpiSetPickAperturePosition(hps, pptlPick);

Parameters

hps (HPS) - input
Presentation-space handle.
pptlPick (PPOINTL) - input
Center of the pick aperture.

The center is in presentation page coordinates.

Return Code

rc (BOOL) - returns
Success indicator.
  • TRUE Successful completion
  • FALSE Error occurred.

Errors

Possible returns from WinGetLastError

PMERR_INV_HPS (0x207F)
An invalid presentation-space handle was specified.
PMERR_PS_BUSY (0x20F4)
An attempt was made to access the presentation space from more than one thread simultaneously.
PMERR_INV_COORDINATE (0x205B)
An invalid coordinate value was specified.

Remarks

Example Code

In this example we query the position of the center of the pick aperture.

#define INCL_GPICORELATION
#include <OS2.H>

BOOL flResult;
HPS hps;                          /* Presentation space handle. */
POINTL ptlPoint = {50L, 50L};     /* Pick-aperture position. */

flResult = GpiSetPickAperturePosition(hps, &ptlPoint);

Related Functions