www.pudn.com > aaa.rar > Bkview.cpp


// Bkview.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "aaa.h" 
#include "Bkview.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CBkview 
 
IMPLEMENT_DYNCREATE(CBkview, CFormView) 
 
CBkview::CBkview() 
	: CFormView(CBkview::IDD) 
{ 
	//{{AFX_DATA_INIT(CBkview) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
CBkview::~CBkview() 
{ 
} 
 
void CBkview::DoDataExchange(CDataExchange* pDX) 
{ 
	CFormView::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CBkview) 
		// NOTE: the ClassWizard will add DDX and DDV calls here 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CBkview, CFormView) 
	//{{AFX_MSG_MAP(CBkview) 
		// NOTE - the ClassWizard will add and remove mapping macros here. 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CBkview diagnostics 
 
#ifdef _DEBUG 
void CBkview::AssertValid() const 
{ 
	CFormView::AssertValid(); 
} 
 
void CBkview::Dump(CDumpContext& dc) const 
{ 
	CFormView::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CBkview message handlers 
 
void CBkview::OnInitialUpdate()  
{ 
	CFormView::OnInitialUpdate(); 
	 
	// TODO: Add your specialized code here and/or call the base class 
	GetParentFrame()->RecalcLayout(); 
	ResizeParentToFit(); 
	m_control.SetParent(this); 
   	//m_bkgd.Create(this,IDC_SHS); 
}