home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
WTJ9403.ZIP
/
OTEXT
/
OTEXT.ARJ
/
OTEXTVW.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-02
|
3KB
|
105 lines
// otextvw.cpp : implementation of the COTextView class
//
#include "stdafx.h"
#include "otext.h"
#include "otextdoc.h"
#include "otextvw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COTextView
IMPLEMENT_DYNCREATE(COTextView, CEditView)
BEGIN_MESSAGE_MAP(COTextView, CEditView)
//{{AFX_MSG_MAP(COTextView)
// 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
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COTextView construction/destruction
COTextView::COTextView()
{
// TODO: add construction code here
}
COTextView::~COTextView()
{
}
BOOL COTextView::PreCreateWindow( CREATESTRUCT& cs )
{
BOOL retval = CEditView::PreCreateWindow(cs);
cs.style &= ~ES_AUTOHSCROLL;
cs.style &= ~WS_HSCROLL;
return retval;
}
/////////////////////////////////////////////////////////////////////////////
// COTextView drawing
void COTextView::OnDraw(CDC* pDC)
{
COTextDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// COTextView printing
BOOL COTextView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default CEditView preparation
return CEditView::OnPreparePrinting(pInfo);
}
void COTextView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView begin printing.
CEditView::OnBeginPrinting(pDC, pInfo);
}
void COTextView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView end printing
CEditView::OnEndPrinting(pDC, pInfo);
}
/////////////////////////////////////////////////////////////////////////////
// COTextView diagnostics
#ifdef _DEBUG
void COTextView::AssertValid() const
{
CEditView::AssertValid();
}
void COTextView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
COTextDoc* COTextView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(COTextDoc)));
return (COTextDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// COTextView message handlers