Edit

Share via


CSplitterWndEx Class

Represents a customized splitter window.

Syntax

class CSplitterWndEx : public CSplitterWnd

Members

Public Constructors

Name Description
CSplitterWndEx::CSplitterWndEx Default constructor.
CSplitterWndEx::~CSplitterWndEx Destructor.

Public Methods

Name Description
CSplitterWndEx::OnDrawSplitter Called by the framework to draw a splitter window. (Overrides CSplitterWnd::OnDrawSplitter.)

Remarks

Override the OnDrawSplitter method to customize the appearance of the graphical components of a splitter window.

The CSplitterWndEx class is used together with the OnDrawSplitterBorder, OnDrawSplitterBox, and OnFillSplitterBackground methods, which are implemented by a visual manager. To cause a visual manager to draw a splitter window in your application, replace declarations of the CSplitterWnd class with the CSplitterWndEx class. For frame window applications, the splitter window class is declared in the CMainFrame class that is located in mainfrm.h. For an example, see the OutlookDemo sample in the Samples directory.

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CSplitterWnd

Requirements

Header: afxsplitterwndex.h

CSplitterWndEx::OnDrawSplitter

Called by the framework to draw a splitter window.

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

Parameters

pDC
[in] Pointer to the device context. If this parameter is NULL, the framework redraws the active window.

nType
[in] One of the CSplitterWnd::ESplitType enumeration values that specifies the splitter window element to draw. Valid values are splitBox, splitBar, splitIntersection, and splitBorder.

rect
[in] A bounding rectangle that specifies the dimensions and location to draw the specified splitter window element.

Remarks

See also

Hierarchy Chart
Classes
CSplitterWnd Class
CMFCVisualManager Class