-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEDITVW.CPP
66 lines (55 loc) · 1.45 KB
/
EDITVW.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// editvw.cpp : implementation of the CEditVw class
//
#include "stdafx.h"
#include "train.h"
#include "pageserv.h"
#include "drawdoc.h"
#include "mapview.h"
#include "editvw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEditVw
#define BASE CEditView
#undef THIS
#define THIS CEditVw
IMPLEMENT_DYNCREATE(CEditVw,CEditView)
BEGIN_MESSAGE_MAP(CEditVw,CEditView)
//{{AFX_MSG_MAP(CEditVw)
ON_WM_SYSCOMMAND()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEditVw construction/destruction
THIS::THIS()
{
}
THIS::~THIS()
{
}
#ifdef _DEBUG
CDrawDoc* THIS::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDrawDoc)));
return (CDrawDoc*) m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CEditVw message handlers
void THIS::OnSysCommand(UINT nChar,LONG lParam)
{
if(m_pMapView->doSysCommand(nChar,lParam))
return;
BASE::OnSysCommand(nChar,lParam);
}
BOOL THIS::PreCreateWindow(CREATESTRUCT& cs)
{
BOOL temp = BASE::PreCreateWindow(cs);
cs.style = cs.style |
WS_HSCROLL | WS_VSCROLL |
ES_AUTOHSCROLL | ES_AUTOVSCROLL |
ES_MULTILINE | ES_NOHIDESEL;
return temp;
}