📄 tipdlg.cpp
字号:
// TipDlg.cpp : implementation file
//
#include "stdafx.h"
#include "SuperNotepad.h"
#include "TipDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTipDlg dialog
CTipDlg::CTipDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTipDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTipDlg)
// NOTE: the ClassWizard will add member initialization here
m_strInfo = _T("");
m_strTime = _T("");
//}}AFX_DATA_INIT
}
CTipDlg::CTipDlg( CString strTime, CString strInfo, CWnd* pParent /*=NULL*/)
: CDialog(CTipDlg::IDD, pParent)
{
m_strInfo = strInfo;
m_strTime = strTime;
}
void CTipDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTipDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
DDX_Text(pDX, IDC_STATIC_INFO, m_strInfo);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTipDlg, CDialog)
//{{AFX_MSG_MAP(CTipDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTipDlg message handlers
BOOL CTipDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CWnd* pWnd = GetDlgItem( IDC_STATIC_TIME );
ASSERT_VALID( pWnd );
pWnd->SetWindowText( m_strTime );
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -