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

📄 buttonbugdlg.cpp

📁 windows ce开发技巧与实例光盘代码
💻 CPP
字号:
// ButtonBugDlg.cpp : implementation file
//

#include "stdafx.h"
#include "ButtonBug.h"
#include "ButtonBugDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CButtonBugDlg dialog

CButtonBugDlg::CButtonBugDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CButtonBugDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CButtonBugDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CButtonBugDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CButtonBugDlg)
	DDX_Control(pDX, IDC_CMYBUTTON, m_CMyButton);
	DDX_Control(pDX, IDC_DISPLAY, m_Display);
	DDX_Control(pDX, IDC_CBUTTON, m_CButton);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CButtonBugDlg, CDialog)
	//{{AFX_MSG_MAP(CButtonBugDlg)
	ON_BN_CLICKED(IDC_CBUTTON, OnCButton)
	ON_BN_CLICKED(IDC_CMYBUTTON, OnCMyButton)
	ON_BN_CLICKED(IDC_NORMAL, OnNormal)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CButtonBugDlg message handlers

BOOL CButtonBugDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	return TRUE;  // return TRUE  unless you set the focus to a control
}

void CButtonBugDlg::OnNormal() 
{
	m_Display.AddString(_T("BN_CLICKED: Normal"));
}

void CButtonBugDlg::OnCButton() 
{
	m_Display.AddString(_T("BN_CLICKED: CButton"));
}

void CButtonBugDlg::OnCMyButton() 
{
	m_Display.AddString(_T("BN_CLICKED: CMyButton"));
}

⌨️ 快捷键说明

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