Currently viewing: GipsySoft » Front Page» QHTM

QHTM_PrintLayout

BOOL WINAPI QHTM_PrintLayout( QHTMCONTEXT qhtmCtx, HDC hdc, LPCRECT lpRect, LPINT lpnPages );

Layout the HTML, using the HDC passed, to determine the number of pages.

Returns the number of pages in for the HTML in nPages.

Parameters

qhtmCtx
The print context.
hdc
The device context used to print.
lpRect
The rectangle on the page that the HTML will be restricted to.
lpnPages
A pointer to a variable to recieve the number of pages QHTM will print onto.

Return value

non-zero if it succeeds.

Example


int nPages;
if( !QHTM_PrintLayout( qhtmCtx, hdc, &rcPrintPage, &nPages ) )
{
	//	Error
}

See also None