warningdlg.cpp

来自「类似Linux操作系统0.11版文件系统的文件系统设计和Windows下的操作程」· C++ 代码 · 共 57 行

CPP
57
字号
// WarningDlg.cpp : 实现文件
//

#include "stdafx.h"
#include "ULExplorer.h"
#include "WarningDlg.h"
#include ".\warningdlg.h"


// CWarningDlg 对话框

IMPLEMENT_DYNAMIC(CWarningDlg, CDialog)
CWarningDlg::CWarningDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CWarningDlg::IDD, pParent)
{
}

CWarningDlg::CWarningDlg(int Type, CWnd* pParent)
	: CDialog(CWarningDlg::IDD, pParent)
{
	m_Type = Type;
}	

CWarningDlg::~CWarningDlg()
{
}

void CWarningDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_STATIC_WARNING, m_ctlStaticWarning);
	DDX_Control(pDX, IDOK, m_BtnOK);
	DDX_Control(pDX, IDC_STATIC_ICON, m_StaticIcon);
}


BEGIN_MESSAGE_MAP(CWarningDlg, CDialog)
END_MESSAGE_MAP()


// CWarningDlg 消息处理程序

BOOL CWarningDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	m_ctlStaticWarning.SetWindowText(m_strText);
	//m_StaticIcon.MoveWindow(50, 50, 48, 48);

	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}

void CWarningDlg::SetText(CString Text)
{
	m_strText = Text;
}

⌨️ 快捷键说明

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