Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEgethotspot

BOOL PEgethotspot (hObject, nX, nY )

 

HWND 

hObject

The handle returned from PEcreate.

INT 

nX

X location in pixel coordinates.

INT 

nY

Y location in pixel coordinates.

 

This function is called to determine if and what type of hot-spot resides under a specific set of x/y coordinates (or more commonly, underneath the mouse's location). This will let you know if the mouse if over a hot-spot without the user having the click or double-click. You will normally use the PEWN_MOUSEMOVE event to retrieve PEP_ptLASTMOUSEMOVE and provide these coordinates to this function. After this use PEvget to get PEP_structHOTSPOTDATA to determine which hot spot if any was found.

 

Parameter

Description

nX

Horizontal pixel coordinate where 0 represents left most pixel.

nY

Vertical pixel coordinate where 0 represents top most pixel.

  

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

See example 014 within included example projects.

 

.NET Developers, see PeFunction.GetHotSpot

ActiveX Developers, see PEgethotspot function