【VC开源代码栏目提醒】:本文主要为网学会员提供ColorToolbarView.cpp,希望对需要ColorToolbarView.cpp网友有所帮助,学习一下!
// ColorToolbarView.cpp : implementation of the CColorToolbarView class
//
#include "stdafx.h"
#include "ColorToolbar.h"
#include "ColorToolbarDoc.h"
#include "ColorToolbarView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CColorToolbarView
IMPLEMENT_DYNCREATE(CColorToolbarView, CView)
BEGIN_MESSAGE_MAP(CColorToolbarView, CView)
//{{AFX_MSG_MAP(CColorToolbarView)
// 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
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CColorToolbarView construction/destruction
CColorToolbarView::CColorToolbarView()
{
// TODO: add construction code here
}
CColorToolbarView::~CColorToolbarView()
{
}
BOOL CColorToolbarView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CColorToolbarView drawing
void CColorToolbarView::OnDraw(CDC* pDC)
{
CColorToolbarDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CColorToolbarView diagnostics
#ifdef _DEBUG
void CColorToolbarView::AssertValid() const
{
CView::AssertValid();
}
void CColorToolbarView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CColorToolbarDoc* CColorToolbarView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CColorToolbarDoc)));
return (CColorToolbarDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CColorToolbarView message handlers
上一篇:
ColorToolbarDoc.cpp
下一篇:
临床前药物安全性评价中毒性病理学新技术的应用