This documentation is archived and is not being maintained.


Call this member function to draw any window in the specified device context (usually a printer device context).

void PrintClient( 
   CDC* pDC, 
   DWORD dwFlags  
) const;


A pointer to a device context.


Specifies drawing options. This parameter can be one or more of these flags:

  • PRF_CHECKVISIBLE   Draw the window only if it is visible.

  • PRF_CHILDREN   Draw all visible children windows.

  • PRF_CLIENT   Draw the client area of the window.

  • PRF_ERASEBKGND   Erase the background before drawing the window.

  • PRF_NONCLIENT   Draw the nonclient area of the window.

  • PRF_OWNED   Draw all owned windows.

Header: afxwin.h