CControlBar::DoPaint

 

Called by the framework to render the borders and gripper bar of the control bar.

Syntax

      virtual void DoPaint(
   CDC* pDC 
);

Parameters

  • pDC
    Points to the device context to be used for rendering the borders and gripper of the control bar.

Remarks

Override this function to customize the drawing behavior of the control bar.

Another customization method is to override the DrawBorders and DrawGripper functions and add custom drawing code for the borders and gripper. Because these methods are called by the default DoPaint method, an override of DoPaint is not needed.

Requirements

Header: afxext.h

See Also

CControlBar Class
Hierarchy Chart
CControlBar::DrawBorders
CControlBar::DrawGripper