⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setche~1.cpp

📁 visual c++ 时尚编程百例 全部源代码
💻 CPP
字号:
// SetCheckView.cpp : implementation of the CSetCheckView class
//

#include "stdafx.h"
#include "SetCheck.h"

#include "SetCheckDoc.h"
#include "SetCheckView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetCheckView

IMPLEMENT_DYNCREATE(CSetCheckView, CView)

BEGIN_MESSAGE_MAP(CSetCheckView, CView)
	//{{AFX_MSG_MAP(CSetCheckView)
	ON_COMMAND(ID_WZD1, OnWzd1)
	ON_UPDATE_COMMAND_UI(ID_WZD1, OnUpdateWzd1)
	ON_COMMAND(ID_WZD2, OnWzd2)
	ON_UPDATE_COMMAND_UI(ID_WZD2, OnUpdateWzd2)
	ON_COMMAND(ID_WZD3, OnWzd3)
	ON_UPDATE_COMMAND_UI(ID_WZD3, OnUpdateWzd3)
	ON_COMMAND(ID_WZD4, OnWzd4)
	ON_UPDATE_COMMAND_UI(ID_WZD4, OnUpdateWzd4)
	//}}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()

/////////////////////////////////////////////////////////////////////////////
// CSetCheckView construction/destruction

CSetCheckView::CSetCheckView()
{
	mode1=false;
	mode2=false;
	mode3=false;
	mode4=false;
	// TODO: add construction code here

}

CSetCheckView::~CSetCheckView()
{
}

BOOL CSetCheckView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CSetCheckView drawing

void CSetCheckView::OnDraw(CDC* pDC)
{
	CSetCheckDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CSetCheckView printing

BOOL CSetCheckView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CSetCheckView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CSetCheckView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CSetCheckView diagnostics

#ifdef _DEBUG
void CSetCheckView::AssertValid() const
{
	CView::AssertValid();
}

void CSetCheckView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CSetCheckDoc* CSetCheckView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSetCheckDoc)));
	return (CSetCheckDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CSetCheckView message handlers

void CSetCheckView::OnWzd1() 
{
	mode1=true;
	// TODO: Add your command handler code here
	
}

void CSetCheckView::OnUpdateWzd1(CCmdUI* pCmdUI) 
{
	pCmdUI->SetRadio(mode1);
	// TODO: Add your command update UI handler code here
	
}

void CSetCheckView::OnWzd2() 
{
	mode2=true;
	// TODO: Add your command handler code here
	
}

void CSetCheckView::OnUpdateWzd2(CCmdUI* pCmdUI) 
{
	pCmdUI->SetRadio(mode2);
	// TODO: Add your command update UI handler code here
	
}

void CSetCheckView::OnWzd3() 
{
	mode3=true;
	// TODO: Add your command handler code here
	
}

void CSetCheckView::OnUpdateWzd3(CCmdUI* pCmdUI) 
{
	pCmdUI->SetRadio(mode3);
	// TODO: Add your command update UI handler code here
	
}

void CSetCheckView::OnWzd4() 
{
	mode4=true;
	// TODO: Add your command handler code here
	
}

void CSetCheckView::OnUpdateWzd4(CCmdUI* pCmdUI) 
{
pCmdUI->SetCheck(mode4);	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -