tipdlg.cpp
来自「非比寻常的超级记事本 1.日历控件的使用 2.托盘技术 3.开机后应用程序」· C++ 代码 · 共 64 行
CPP
64 行
// 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 + =
减小字号Ctrl + -
显示快捷键?