gusucode.com > 基于VC编程界面编程高级应用技术源码程序 > VC界面编程高级应用技术/code/1/ViewOutlookdemo/Test.cpp
// Test.cpp : implementation file // #include "stdafx.h" #include "ViewOutlookdemo.h" #include "Test.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTest IMPLEMENT_DYNCREATE(CTest, CEditView) CTest::CTest() { } CTest::~CTest() { } BEGIN_MESSAGE_MAP(CTest, CEditView) //{{AFX_MSG_MAP(CTest) ON_WM_ERASEBKGND() ON_WM_CTLCOLOR_REFLECT() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTest drawing void CTest::OnDraw(CDC* pDC) { CDocument* pDoc = GetDocument(); // TODO: add draw code here } ///////////////////////////////////////////////////////////////////////////// // CTest diagnostics #ifdef _DEBUG void CTest::AssertValid() const { CEditView::AssertValid(); } void CTest::Dump(CDumpContext& dc) const { CEditView::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CTest message handlers BOOL CTest::OnEraseBkgnd(CDC* pDC) { // TODO: Add your message handler code here and/or call default return CEditView::OnEraseBkgnd(pDC); } HBRUSH CTest::CtlColor(CDC* pDC, UINT nCtlColor) { // TODO: Change any attributes of the DC here // TODO: Return a non-NULL brush if the parent's handler should not be called return NULL; }