EndPage

  int EndPage(hdc)    
  HDC hdc; /* device-context handle */

The EndPage function informs the device that the application has finished writing to a page. This function is typically used to direct the device driver to advance to a new page.

This function replaces the NEWFRAME printer escape for Windows version 3.1 and later.

Parameters

hdc

Identifies the device context for the print job.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

Comments

The ResetDC function can be used to change the device mode, if necessary, after calling the EndPage function.

See Also

Escape, ResetDC, StartPage