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

📄 warning2.cpp

📁 本文件中包含的是《VC编程100例》一书中的源代码
💻 CPP
字号:
// Warning2.cpp : implementation file
//

#include "stdafx.h"
#include "SysEnvVar.h"
#include "Warning2.h"

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

/////////////////////////////////////////////////////////////////////////////
// CWarning2 dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// CWarning2 message handlers

void CWarning2::OnCancel() 
{
	// TODO: Add extra cleanup here
	m_pParent->m_bFlag = FALSE;
	CDialog::OnCancel();
}

void CWarning2::OnOK() 
{
	// TODO: Add extra validation here
	m_pParent->m_bFlag = TRUE;
	CDialog::OnOK();
}

⌨️ 快捷键说明

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