www.pudn.com > DialogBar调用切分窗口.rar > RightView.cpp


// RightView.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "task.h" 
#include "RightView.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CRightView 
 
IMPLEMENT_DYNCREATE(CRightView, CScrollView) 
 
CRightView::CRightView() 
{ 
} 
 
CRightView::~CRightView() 
{ 
} 
 
 
BEGIN_MESSAGE_MAP(CRightView, CScrollView) 
	//{{AFX_MSG_MAP(CRightView) 
		// NOTE - the ClassWizard will add and remove mapping macros here. 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CRightView drawing 
 
void CRightView::OnInitialUpdate() 
{ 
	CScrollView::OnInitialUpdate(); 
 
	CSize sizeTotal; 
	// TODO: calculate the total size of this view 
	sizeTotal.cx = sizeTotal.cy = 100; 
	SetScrollSizes(MM_TEXT, sizeTotal); 
} 
 
void CRightView::OnDraw(CDC* pDC) 
{ 
	CDocument* pDoc = GetDocument(); 
	// TODO: add draw code here 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CRightView diagnostics 
 
#ifdef _DEBUG 
void CRightView::AssertValid() const 
{ 
	CScrollView::AssertValid(); 
} 
 
void CRightView::Dump(CDumpContext& dc) const 
{ 
	CScrollView::Dump(dc); 
} 
CTaskDoc* CRightView::GetDocument() // non-debug version is inline 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTaskDoc))); 
	return (CTaskDoc*)m_pDocument; 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CRightView message handlers