|
| 1 | +--- |
| 2 | +title: "CSplitterWndEx Class | Microsoft Docs" |
| 3 | +ms.custom: "" |
| 4 | +ms.date: "11/04/2016" |
| 5 | +ms.reviewer: "" |
| 6 | +ms.suite: "" |
| 7 | +ms.technology: |
| 8 | + - "devlang-cpp" |
| 9 | +ms.tgt_pltfrm: "" |
| 10 | +ms.topic: "reference" |
| 11 | +f1_keywords: |
| 12 | + - "CSplitterWndEx" |
| 13 | +dev_langs: |
| 14 | + - "C++" |
| 15 | +helpviewer_keywords: |
| 16 | + - "CSplitterWndEx" |
| 17 | + |
| 18 | +ms.assetid: 33e5eef3-05e1-4a07-a968-bf9207ce8598 |
| 19 | +caps.latest.revision: 24 |
| 20 | +author: "mikeblome" |
| 21 | +ms.author: "mblome" |
| 22 | +manager: "ghogen" |
| 23 | +translation.priority.ht: |
| 24 | + - "cs-cz" |
| 25 | + - "de-de" |
| 26 | + - "es-es" |
| 27 | + - "fr-fr" |
| 28 | + - "it-it" |
| 29 | + - "ja-jp" |
| 30 | + - "ko-kr" |
| 31 | + - "pl-pl" |
| 32 | + - "pt-br" |
| 33 | + - "ru-ru" |
| 34 | + - "tr-tr" |
| 35 | + - "zh-cn" |
| 36 | + - "zh-tw" |
| 37 | +--- |
| 38 | +# CSplitterWndEx Class |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +Represents a customized splitter window. |
| 43 | + |
| 44 | +## Syntax |
| 45 | + |
| 46 | +``` |
| 47 | +class CSplitterWndEx : public CSplitterWnd |
| 48 | +``` |
| 49 | + |
| 50 | +## Members |
| 51 | + |
| 52 | +### Public Constructors |
| 53 | + |
| 54 | +|Name|Description| |
| 55 | +|----------|-----------------| |
| 56 | +|`CSplitterWndEx::CSplitterWndEx`|Default constructor.| |
| 57 | +|`CSplitterWndEx::~CSplitterWndEx`|Destructor.| |
| 58 | + |
| 59 | +### Public Methods |
| 60 | + |
| 61 | +|Name|Description| |
| 62 | +|----------|-----------------| |
| 63 | +|[CSplitterWndEx::OnDrawSplitter](#csplitterwndex__ondrawsplitter)|Called by the framework to draw a splitter window. (Overrides [CSplitterWnd::OnDrawSplitter](csplitterwnd-class.md#csplitterwnd__ondrawsplitter).)| |
| 64 | + |
| 65 | +## Remarks |
| 66 | + Override the `OnDrawSplitter` method to customize the appearance of the graphical components of a splitter window. |
| 67 | + |
| 68 | + The `CSplitterWndEx` class is used together with the [OnDrawSplitterBorder](cmfcvisualmanager-class.md#cmfcvisualmanager__ondrawsplitterborder), [OnDrawSplitterBox](cmfcvisualmanager-class.md#cmfcvisualmanager__ondrawsplitterbox), and [OnFillSplitterBackground](cmfcvisualmanager-class.md#cmfcvisualmanager__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. |
| 69 | + |
| 70 | +## Inheritance Hierarchy |
| 71 | + [CObject](cobject-class.md) |
| 72 | + |
| 73 | + [CCmdTarget](ccmdtarget-class.md) |
| 74 | + |
| 75 | + [CWnd](cwnd-class.md) |
| 76 | + |
| 77 | + [CSplitterWnd](csplitterwnd-class.md) |
| 78 | + |
| 79 | +## Requirements |
| 80 | + **Header:** afxsplitterwndex.h |
| 81 | + |
| 82 | +## <a name="csplitterwndex__ondrawsplitter"></a> CSplitterWndEx::OnDrawSplitter |
| 83 | + Called by the framework to draw a splitter window. |
| 84 | + |
| 85 | +``` |
| 86 | +virtual void OnDrawSplitter( |
| 87 | + CDC* pDC, |
| 88 | + ESplitType nType, |
| 89 | + const CRect& rect |
| 90 | +); |
| 91 | +``` |
| 92 | + |
| 93 | +### Parameters |
| 94 | + [in] `pDC` |
| 95 | + Pointer to the device context. If this parameter is `NULL`, the framework redraws the active window. |
| 96 | + |
| 97 | + [in] `nType` |
| 98 | + One of the `CSplitterWnd::ESplitType` enumeration values that specifies the splitter window element to draw. Valid values are `splitBox`, `splitBar`, `splitIntersection`, and `splitBorder`. |
| 99 | + |
| 100 | + [in] `rect` |
| 101 | + A bounding rectangle that specifies the dimensions and location to draw the specified splitter window element. |
| 102 | + |
| 103 | +### Remarks |
| 104 | + |
| 105 | +## See Also |
| 106 | + [Hierarchy Chart](../hierarchy-chart.md) |
| 107 | + [Classes](../mfc-classes.md) |
| 108 | + [CSplitterWnd Class](csplitterwnd-class.md) |
| 109 | + [CMFCVisualManager Class](cmfcvisualmanager-class.md) |
0 commit comments