BCGControlBar Pro for MFC
virtual void CBCGPSplitterWnd::OnDrawSplitter ( CDC *  pDC,
ESplitType  nType,
const CRect &  rect 

Renders an image of a split window.

This member function is called by the framework to draw and specify the exact characteristics of a splitter window.

Override OnDrawSplitter for advanced customization of the imagery for the various graphical components of a splitter window.

The default implementation calls the current visual manager in order to render the split window image according to the currently selected theme.

The nType parameter is a value of the enum ESplitType, which can be one of the following:

  • splitBox: the splitter drag box.
  • splitBar: the bar that appears between the two split windows.
  • splitIntersection: the intersection of the split windows. This element will not be called when running on Windows 95.
  • splitBorder: the split window borders.
pDCA pointer to the device context in which to draw. If pDC is NULL, then CWnd::RedrawWindow is called by the framework and no split window is drawn.
nTypeA value of the enum ESplitType
rectA reference to a CRect object specifying the size and shape of the split windows.