SftDirectory 2.5

SftDirectory.HitTestPix Method

Softel vdm, Inc.

Determines the file/folder at the given cursor coordinates.

Syntax       

VB.NET

refFolderObj = object.HitTestPix(ByVal xPosPix As OLE_XPOS_PIXELS, ByVal yPosPix As OLE_YPOS_PIXELS)  As SftDirectoryFolder

VB

refFolderObj = object.HitTestPix(ByVal xPosPix As OLE_XPOS_PIXELS, ByVal yPosPix As OLE_YPOS_PIXELS)  As SftDirectoryFolder

C#.NET

SftDirectoryFolder refFolderObj = object.HitTestPix(OLE_XPOS_PIXELS xPosPix, OLE_YPOS_PIXELS yPosPix);

VC++

ISftDirectoryFolder* refFolderObj = object->HitTestPix(OLE_XPOS_PIXELS xPosPix, OLE_YPOS_PIXELS yPosPix);

C

HRESULT object->raw_HitTestPix(OLE_XPOS_PIXELS xPosPix, OLE_YPOS_PIXELS yPosPix, ISftDirectoryFolder** refFolderObj);

Delphi

refFolderObj := object.HitTestPix(xPosPix : Integer; yPosPix : Integer)  : ISftDirectoryFolder;

object

A SftDirectory object.

xPosPix

The x coordinate to be tested, in pixels.

yPosPix

The y coordinate to be tested, in pixels. 

refFolderObj

Returns the SftDirectoryFolder object located at the specified coordinates.  If no folder is located at the coordinates, Nothing (NULL) is returned.

Comments

The HitTestPix method determines the file/folder at the given cursor coordinates.


Feedback / comments / error reports for this topic
© 2003, 2008 - Softel vdm, Inc. - www.softelvdm.com