📄 heidlg.cpp
字号:
// HeiDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DirAndDF.h"
#include "HeiDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHeiDlg dialog
CHeiDlg::CHeiDlg(CWnd* pParent /*=NULL*/)
: CDialog(CHeiDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CHeiDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CHeiDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHeiDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CHeiDlg, CDialog)
//{{AFX_MSG_MAP(CHeiDlg)
ON_WM_CTLCOLOR()
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CHeiDlg message handlers
HBRUSH CHeiDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(nCtlColor == CTLCOLOR_DLG){
pDC->SetBkColor(RGB(0,0,0));
return h_BlackBrush;
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
BOOL CHeiDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
h_BlackBrush = (HBRUSH)GetStockObject(BLACK_BRUSH);
SetTimer(2,500,NULL);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CHeiDlg::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CDialog::OnCancel();
CDialog::OnTimer(nIDEvent);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -