StartPage function (wingdi.h)
The StartPage function prepares the printer driver to accept data.
int StartPage( [in] HDC hdc );
A handle to the device context for the print job.
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.
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.
For a sample program that uses this function, see How To: Print Using the GDI Print API.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|