setting2.cpp
来自「自己写的关于车台控制面板的演示程序」· C++ 代码 · 共 54 行
CPP
54 行
// Setting2.cpp : implementation file
//
#include "stdafx.h"
#include "ConsoleDisplay.h"
#include "Setting2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetting2 dialog
CSetting2::CSetting2(CWnd* pParent /*=NULL*/)
: CDialog(CSetting2::IDD, pParent)
{
//{{AFX_DATA_INIT(CSetting2)
m_setting2 = FALSE;
//}}AFX_DATA_INIT
}
void CSetting2::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSetting2)
DDX_Check(pDX, IDC_CHECK1, m_setting2);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSetting2, CDialog)
//{{AFX_MSG_MAP(CSetting2)
ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSetting2 message handlers
void CSetting2::OnCheck1()
{
// TODO: Add your control notification handler code here
if(m_setting2 == false)
m_setting2=true;
else
m_setting2=false;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?