Share via


CSplitterWnd::OnDrawSplitter

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.

  • 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, in that the intersections of the splitter bars are blended together.

For more on dynamic splitter windows, see "Splitter Windows" in the article in Visual C++ Programmer’s Guide, Technical Note 29, and the CSplitterWnd class overview.

CSplitterWnd OverviewClass MembersHierarchy Chart

See Also   CSplitterWnd::OnInvertTracker