Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


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

Community Additions

© 2015 Microsoft