SftPrintPreview/DLL 2.0

SFTPRINTPREVIEW_HITTESTRESULT

Softel vdm, Inc.

The SFTPRINTPREVIEW_HITTESTRESULT structure is used with the HitTest function and returns information about a specified location.

typedef struct tagSftPrintPreviewHitTestResult {
    int area;
#define SFTPRINTPREVIEW_AREA_NONE   0
#define SFTPRINTPREVIEW_AREA_PAGE   1
    int pageRow;                        /* (relative) page row number 0..6-1 */
    int pageCol;                        /* (relative) page col number 0..12-1 */
    int x, y;                           /* relative position */
    double fltPosX, fltPosY;            /* point of page in inches or -1.0, -1.0 */
} SFTPRINTPREVIEW_HITTESTRESULT;
typedef const SFTPRINTPREVIEW_HITTESTRESULT * LPCSFTPRINTPREVIEW_HITTESTRESULT;

Members

area

Defines the area at the specified location.

area

Description

SFTPRINTPREVIEW_AREA_NONE

The specified location is not within a page.  The remaining members of this structure are undefined and are not valid.

SFTPRINTPREVIEW_AREA_PAGE   

The specified location is within a page.

pageRow

Defines the relative row number (page position) of the specified location.  pageRow and pageCol indicate relative page numbers, starting at the first page displayed (see SFTPRINTPREVIEW_CONTROL, firstPage member). The number of page rows and columns displayed is defined using the maxPageRows and maxPageCols members of the SFTPRINTPREVIEW_CONTROL structure. 

pageCol

Defines the relative column number (page position) of the specified location.  pageRow and pageCol indicate relative page numbers, starting at the first page displayed (see SFTPRINTPREVIEW_CONTROL, firstPage member). The number of page rows and columns displayed is defined using the maxPageRows and maxPageCols members of the SFTPRINTPREVIEW_CONTROL structure. 

x

Defines the horizontal (x) position (in pixels), relative to the top, left corner of the displayed page.

y

Defines the vertical (y) position (in pixels), relative to the top, left corner of the displayed page.

fltPosX

Defines the horizontal position (in inches), relative to the top, left corner of the printed/previewed page (in printer dimensions).

fltPosY

Defines the vertical position (in inches), relative to the top, left corner of the printed/previewed page (in printer dimensions).

Comments

The SFTPRINTPREVIEW_HITTESTRESULT structure is used with the HitTest function and returns information about a specified location.

See Also  C/C++ API  |  C++ Classes  |  Notifications


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