| description | Learn more about: CSplitterWndEx Class | |||
|---|---|---|---|---|
| title | CSplitterWndEx Class | |||
| ms.date | 11/04/2016 | |||
| f1_keywords |
|
|||
| helpviewer_keywords |
|
|||
| ms.assetid | 33e5eef3-05e1-4a07-a968-bf9207ce8598 |
Represents a customized splitter window.
class CSplitterWndEx : public CSplitterWnd
| Name | Description |
|---|---|
CSplitterWndEx::CSplitterWndEx |
Default constructor. |
CSplitterWndEx::~CSplitterWndEx |
Destructor. |
| Name | Description |
|---|---|
| CSplitterWndEx::OnDrawSplitter | Called by the framework to draw a splitter window. (Overrides CSplitterWnd::OnDrawSplitter.) |
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.
Header: afxsplitterwndex.h
Called by the framework to draw a splitter window.
virtual void OnDrawSplitter(
CDC* pDC,
ESplitType nType,
const CRect& rect
);
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.
Hierarchy Chart
Classes
CSplitterWnd Class
CMFCVisualManager Class