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