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