📄 pofiledlg.cpp
字号:
// PofileDlg.cpp : implementation file
//
#include "stdafx.h"
#include "TestLib.h"
#include "PofileDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPofileDlg dialog
CPofileDlg::CPofileDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPofileDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPofileDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CPofileDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPofileDlg)
DDX_Control(pDX, IDC_RICHTEXTCTRL1, m_rText);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPofileDlg, CDialog)
//{{AFX_MSG_MAP(CPofileDlg)
ON_BN_CLICKED(IDC_APPLY, OnApply)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPofileDlg message handlers
BOOL CPofileDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_rText.SetFileName("F:\\profile.ini");
return TRUE;
}
void CPofileDlg::OnApply()
{
VARIANT var;
var.iVal=0;
m_rText.SaveFile("F:\\profile.ini",var);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -