CSplitterWnd::OnDrawSplitter

Renders an image of a split window.

virtual void OnDrawSplitter( 
   CDC* pDC, 
   ESplitType nType, 
   const CRect& rect  
);

Parameters

  • pDC
    A 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.

  • nType
    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/98.

    • splitBorder   The split window borders.

  • rect
    A reference to a CRect object specifying the size and shape of the split windows.

Remarks

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 imagery is similar to the splitter in Microsoft Works for Windows or Microsoft Windows 95/98, in that the intersections of the splitter bars are blended together.

For more on dynamic splitter windows, see "Splitter Windows" in the article Multiple Document Types, Views, and Frame Windows, Technical Note 29, and the CSplitterWnd class overview.

Requirements

Header: afxext.h

See Also

Reference

CSplitterWnd Class

Hierarchy Chart

CSplitterWnd::OnInvertTracker