www.gusucode.com > VC++打开预览BMP图像-源码程序 > VC++打开预览BMP图像-源码程序/code/TxtView.cpp
//Download by http://www.NewXing.com // TxtView.cpp : implementation file // #include "stdafx.h" #include "1.h" #include "TxtView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTxtView IMPLEMENT_DYNCREATE(CTxtView, CEditView) CTxtView::CTxtView() { } CTxtView::~CTxtView() { } BEGIN_MESSAGE_MAP(CTxtView, CEditView) //{{AFX_MSG_MAP(CTxtView) ON_UPDATE_COMMAND_UI(ID_OPENBMP, OnUpdateOpenbmp) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTxtView drawing void CTxtView::OnDraw(CDC* pDC) { CDocument* pDoc = GetDocument(); // TODO: add draw code here } ///////////////////////////////////////////////////////////////////////////// // CTxtView diagnostics #ifdef _DEBUG void CTxtView::AssertValid() const { CEditView::AssertValid(); } void CTxtView::Dump(CDumpContext& dc) const { CEditView::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CTxtView message handlers void CTxtView::OnUpdateOpenbmp(CCmdUI* pCmdUI) { // TODO: Add your command update UI handler code here }