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.


Draws a window caption.

BOOL DrawCaption( 
   CDC* pDC, 
   LPCRECT lprc, 
   UINT uFlags 


A pointer to a device context. The function draws the window caption into this device context.


A pointer to a RECT structure that specifies the bounding rectangle for the window caption.


Specifies drawing options. For a complete list of values, see DrawCaption.

Nonzero if the function succeeds; otherwise 0.

This member function emulates the functionality of the function DrawCaption, as described in the Windows SDK.

Header: afxwin.h

Community Additions

© 2015 Microsoft