StartPage function (wingdi.h)
The StartPage function prepares the printer driver to accept data.
Syntax
int StartPage(
[in] HDC hdc
);
Parameters
[in] hdc
A handle to the device context for the print job.
Return value
If the function succeeds, the return value is greater than zero.
If the function fails, the return value is less than or equal to zero.
Remarks
Neither EndPage nor StartPage resets the device context attributes. Device context attributes remain constant across subsequent pages. You do not need to re-select objects and set up the mapping mode again before printing the next page; however, doing so will produce the same results and reduce code differences between versions of Windows.
Examples
For a sample program that uses this function, see How To: Print Using the GDI Print API.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |