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

📄 simulatekeyboardview.cpp

📁 《Visual C++程序员成长攻略》-戴博-源代码
💻 CPP
字号:
// SimulateKeyboardView.cpp : implementation of the CSimulateKeyboardView class
//

#include "stdafx.h"
#include "SimulateKeyboard.h"

#include "SimulateKeyboardDoc.h"
#include "SimulateKeyboardView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSimulateKeyboardView

IMPLEMENT_DYNCREATE(CSimulateKeyboardView, CFormView)

BEGIN_MESSAGE_MAP(CSimulateKeyboardView, CFormView)
	//{{AFX_MSG_MAP(CSimulateKeyboardView)
		// 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, CFormView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CFormView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSimulateKeyboardView construction/destruction

CSimulateKeyboardView::CSimulateKeyboardView()
	: CFormView(CSimulateKeyboardView::IDD)
{
	//{{AFX_DATA_INIT(CSimulateKeyboardView)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// TODO: add construction code here

}

CSimulateKeyboardView::~CSimulateKeyboardView()
{
}

void CSimulateKeyboardView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSimulateKeyboardView)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}

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

	return CFormView::PreCreateWindow(cs);
}

void CSimulateKeyboardView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	GetParentFrame()->RecalcLayout();
	ResizeParentToFit();

}

/////////////////////////////////////////////////////////////////////////////
// CSimulateKeyboardView printing

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

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

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

void CSimulateKeyboardView::OnPrint(CDC* pDC, CPrintInfo* /*pInfo*/)
{
	// TODO: add customized printing code here
}

/////////////////////////////////////////////////////////////////////////////
// CSimulateKeyboardView diagnostics

#ifdef _DEBUG
void CSimulateKeyboardView::AssertValid() const
{
	CFormView::AssertValid();
}

void CSimulateKeyboardView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}

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

/////////////////////////////////////////////////////////////////////////////
// CSimulateKeyboardView message handlers

⌨️ 快捷键说明

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