-
Notifications
You must be signed in to change notification settings - Fork 1
/
SplitterWndEx.cpp
46 lines (35 loc) · 966 Bytes
/
SplitterWndEx.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// SplitterWndEx.cpp : implementation file
//
#include "stdafx.h"
#include "cedtHeader.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSplitterWndEx
CSplitterWndEx::CSplitterWndEx()
{
}
CSplitterWndEx::~CSplitterWndEx()
{
}
BEGIN_MESSAGE_MAP(CSplitterWndEx, CSplitterWnd)
//{{AFX_MSG_MAP(CSplitterWndEx)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSplitterWndEx message handlers
BOOL CSplitterWndEx::SplitColumn(int cxBefore)
{
for( INT i = 0; i < GetRowCount(); i++ ) {
CCedtView * pView = (CCedtView *)GetPane(i, 0);
if( pView->IsWordWrapOn() ) {
AfxMessageBox(IDS_ERR_SPLIT_WINDOW_COLUMN, MB_OK);
return FALSE;
}
}
return CSplitterWnd::SplitColumn(cxBefore);
}