Test_HMXControlsView.cpp
上传用户:yinguanfa
上传日期:2022-02-19
资源大小:400k
文件大小:3k
源码类别:
ListView/ListBox
开发平台:
Visual C++
- // Test_HMXControlsView.cpp : implementation of the CTest_HMXControlsView class
- //
- #include "stdafx.h"
- #include "Test_HMXControls.h"
- #include "Test_HMXControlsDoc.h"
- #include "Test_HMXControlsView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CTest_HMXControlsView
- IMPLEMENT_DYNCREATE(CTest_HMXControlsView, CView)
- BEGIN_MESSAGE_MAP(CTest_HMXControlsView, CView)
- //{{AFX_MSG_MAP(CTest_HMXControlsView)
- //}}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()
- /////////////////////////////////////////////////////////////////////////////
- // CTest_HMXControlsView construction/destruction
- CTest_HMXControlsView::CTest_HMXControlsView()
- {
- // TODO: add construction code here
- }
- CTest_HMXControlsView::~CTest_HMXControlsView()
- {
- }
- BOOL CTest_HMXControlsView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CTest_HMXControlsView drawing
- void CTest_HMXControlsView::OnDraw(CDC* pDC)
- {
- CTest_HMXControlsDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CTest_HMXControlsView printing
- BOOL CTest_HMXControlsView::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
- void CTest_HMXControlsView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
- void CTest_HMXControlsView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
- /////////////////////////////////////////////////////////////////////////////
- // CTest_HMXControlsView diagnostics
- #ifdef _DEBUG
- void CTest_HMXControlsView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CTest_HMXControlsView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CTest_HMXControlsDoc* CTest_HMXControlsView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTest_HMXControlsDoc)));
- return (CTest_HMXControlsDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CTest_HMXControlsView message handlers