www.gusucode.com > VC++多线程的串口通讯实例源码程序 > VC++多线程的串口通讯实例源码程序/code/mscomabc/mscomabcView.cpp
// mscomabcView.cpp : implementation of the CMscomabcView class // Download by http://www.NewXing.com #include "stdafx.h" #include "mscomabc.h" #include "mscomabcDoc.h" #include "mscomabcView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMscomabcView IMPLEMENT_DYNCREATE(CMscomabcView, CView) BEGIN_MESSAGE_MAP(CMscomabcView, CView) //{{AFX_MSG_MAP(CMscomabcView) // 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 // Standard printing commands ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMscomabcView construction/destruction CMscomabcView::CMscomabcView() { // TODO: add construction code here } CMscomabcView::~CMscomabcView() { } BOOL CMscomabcView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CMscomabcView drawing void CMscomabcView::OnDraw(CDC* pDC) { CMscomabcDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMscomabcView printing BOOL CMscomabcView::OnPreparePrinting(CPrintInfo* pInfo) { // default preparation return DoPreparePrinting(pInfo); } void CMscomabcView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add extra initialization before printing } void CMscomabcView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add cleanup after printing } ///////////////////////////////////////////////////////////////////////////// // CMscomabcView diagnostics #ifdef _DEBUG void CMscomabcView::AssertValid() const { CView::AssertValid(); } void CMscomabcView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMscomabcDoc* CMscomabcView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMscomabcDoc))); return (CMscomabcDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMscomabcView message handlers