Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Draws the caption button.
virtual void OnDraw(
   CDC* pDC,
   BOOL bActive,
   BOOL bHorz = TRUE,
   BOOL bMaximized = TRUE,
   BOOL bDisabled = FALSE
);
Parameters
- [in] pDC 
 Pointer to a device context for the button.
- [in] bActive 
 Whether to draw an active button image.
- [in] bHorz 
 Reserved for use in a derived class.
- [in] bMaximized 
 Whether to draw a maximized button image.
- [in] bDisabled 
 Whether to draw an enabled button image.
Remarks
The bMaximized parameter is used when the button is a maximize or minimize button.
Requirements
Header: afxcaptionbutton.h