Currently viewing: GipsySoft » Front Page» QHTM

QHTM_OPT_MARGINS

Set or get the document margins.

Note that margins set in the document override margins set using QHTM_OPT_MARGINS.

Default margins are 5 pixels for all.

Parameters

wParam
Must be QHTM_OPT_MARGINS.
lParam
Must be a pointer to a RECT structure

Return value


Nonzero if successful

Example


RECT rcMargins = { 10, 10, 10, 10 };

//
//	Set the margins used
::SendMessage( hwnd, QHTM_SET_OPTION, QHTM_OPT_MARGINS, (LPARAM)&rcMargins );

//
//	Or use the message cracker
QHTM_SetMargins( hwnd, &rcMargins );

See also QHTM_GET_OPTION