Partager via


CWindow::Print

Sends a WM_PRINT message to the window to request that it draw itself in the specified device context.

void Print( 
   HDC hDC, 
   DWORD dwFlags  
) const throw();

Parameters

  • hDC
    [in] The handle to a device context.

  • dwFlags
    [in] Specifies the drawing options. You can combine one or more of the following flags:

    • PRF_CHECKVISIBLE   Draw the window only if it is visible.

    • PRF_CHILDREN   Draw all visible child windows.

    • PRF_CLIENT   Draw the client area of the window.

    • PRF_ERASEBKGND   Erase the background before drawing the window.

    • PRF_NONCLIENT   Draw the non-client area of the window.

    • PRF_OWNED   Draw all owned windows.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::PrintClient