home *** CD-ROM | disk | FTP | other *** search
- // MiniEdVw.cpp : implementation of the CMiniEditView class
- //
-
- #include "stdafx.h"
- #include "MiniEdit.h"
-
- #include "MiniEDoc.h"
- #include "MiniEdVw.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CMiniEditView
-
- IMPLEMENT_DYNCREATE(CMiniEditView, CEditView)
-
- BEGIN_MESSAGE_MAP(CMiniEditView, CEditView)
- //{{AFX_MSG_MAP(CMiniEditView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CMiniEditView construction/destruction
-
- CMiniEditView::CMiniEditView()
- {
- // TODO: add construction code here
-
- }
-
- CMiniEditView::~CMiniEditView()
- {
- }
-
- BOOL CMiniEditView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
-
- BOOL bPreCreated = CEditView::PreCreateWindow(cs);
- cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL); // Enable word-wrapping
-
- return bPreCreated;
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CMiniEditView drawing
-
- void CMiniEditView::OnDraw(CDC* pDC)
- {
- CMiniEditDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
-
- // TODO: add draw code for native data here
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CMiniEditView diagnostics
-
- #ifdef _DEBUG
- void CMiniEditView::AssertValid() const
- {
- CEditView::AssertValid();
- }
-
- void CMiniEditView::Dump(CDumpContext& dc) const
- {
- CEditView::Dump(dc);
- }
-
- CMiniEditDoc* CMiniEditView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMiniEditDoc)));
- return (CMiniEditDoc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CMiniEditView message handlers
-