【VC开源代码栏目提醒】:以下是网学会员为您推荐的VC开源代码-EXPANDINGDIALOGSAMPLEVIEW.CPP,希望本篇文章对您学习有所帮助。
// ExpandingDialogSampleView.cpp : implementation of the CExpandingDialogSampleView class
//
#include "stdafx.h"
#include "ExpandingDialogSample.h"
#include "ExpandingDialogSampleDoc.h"
#include "ExpandingDialogSampleView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleView
IMPLEMENT_DYNCREATE(CExpandingDialogSampleView, CView)
BEGIN_MESSAGE_MAP(CExpandingDialogSampleView, CView)
//{{AFX_MSG_MAP(CExpandingDialogSampleView)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleView construction/destruction
CExpandingDialogSampleView::CExpandingDialogSampleView()
{
// TODO: add construction code here
}
CExpandingDialogSampleView::~CExpandingDialogSampleView()
{
}
BOOL CExpandingDialogSampleView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleView drawing
void CExpandingDialogSampleView::OnDraw(CDC* /*pDC*/)
{
CExpandingDialogSampleDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleView diagnostics
#ifdef _DEBUG
void CExpandingDialogSampleView::AssertValid() const
{
CView::AssertValid();
}
void CExpandingDialogSampleView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CExpandingDialogSampleDoc* CExpandingDialogSampleView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CExpandingDialogSampleDoc)));
return (CExpandingDialogSampleDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CExpandingDialogSampleView message handlers