【VC开源代码栏目提醒】:本文主要为网学会员提供FullScreenView.cpp,希望对需要FullScreenView.cpp网友有所帮助,学习一下!
// FullScreenView.cpp : implementation of the CFullScreenView class
//
#include "stdafx.h"
#include "FullScreen.h"
#include "FullScreenDoc.h"
#include "FullScreenView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFullScreenView
IMPLEMENT_DYNCREATE(CFullScreenView, CEditView)
BEGIN_MESSAGE_MAP(CFullScreenView, CEditView)
//{{AFX_MSG_MAP(CFullScreenView)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CFullScreenView construction/destruction
CFullScreenView::CFullScreenView()
{
// TODO: add construction code here
}
CFullScreenView::~CFullScreenView()
{
}
BOOL CFullScreenView::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;
}
/////////////////////////////////////////////////////////////////////////////
// CFullScreenView drawing
void CFullScreenView::OnDraw(CDC* pDC)
{
CFullScreenDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CFullScreenView diagnostics
#ifdef _DEBUG
void CFullScreenView::AssertValid() const
{
CEditView::AssertValid();
}
void CFullScreenView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
CFullScreenDoc* CFullScreenView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFullScreenDoc)));
return (CFullScreenDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CFullScreenView message handlers