warning1.cpp

来自「内容包括VC++有关的各个方面的范例。包括界面的设计」· C++ 代码 · 共 59 行

CPP
59
字号
// Warning1.cpp : implementation file
//

#include "stdafx.h"
#include "SysEnvVar.h"
#include "Warning1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CWarning1 dialog


CWarning1::CWarning1(CWnd* pParent /*=NULL*/)
	: CDialog(CWarning1::IDD, pParent)
{
	//{{AFX_DATA_INIT(CWarning1)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


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


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

/////////////////////////////////////////////////////////////////////////////
// CWarning1 message handlers

void CWarning1::OnOK() 
{
	// TODO: Add extra validation here
	//用户确认更改
	m_pParent->m_bFlag = TRUE;
	CDialog::OnOK();
}

void CWarning1::OnCancel() 
{
	// TODO: Add extra cleanup here
	//用户取消更改
	m_pParent->m_bFlag = FALSE;
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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