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

📄 compdlg.cpp

📁 API经典入门
💻 CPP
字号:
// compdlg.cpp : implementation file
//

#include "stdafx.h"
#include "misc.h"
#include "compdlg.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCompDlg dialog


CCompDlg::CCompDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CCompDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCompDlg)
	m_Str1 = "";
	m_Str2 = "";
	//}}AFX_DATA_INIT
	m_nButtonPressed = 0;
}

void CCompDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCompDlg)
	DDX_Text(pDX, IDC_STRING1, m_Str1);
	DDX_Text(pDX, IDC_STRING2, m_Str2);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CCompDlg, CDialog)
	//{{AFX_MSG_MAP(CCompDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CCompDlg message handlers

void CCompDlg::OnOK()
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
	
	m_nButtonPressed = GetCheckedRadioButton(IDC_COMPARE, IDC_COLLATE);
	
}

BOOL CCompDlg::OnInitDialog()
{
	CDialog::OnInitDialog();
	
	if (m_nButtonPressed)
		CheckRadioButton(IDC_COMPARE, IDC_COLLATE, m_nButtonPressed);
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}

⌨️ 快捷键说明

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