📄 acstipdlg.cpp
字号:
// AcsTipDlg.cpp : implementation file
//
#include "stdafx.h"
#include "acs.h"
#include "AcsTipDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAcsTipDlg dialog
CAcsTipDlg::CAcsTipDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAcsTipDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CAcsTipDlg)
//}}AFX_DATA_INIT
}
void CAcsTipDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAcsTipDlg)
DDX_Control(pDX, IDC_TIPTEXT, m_strTipText);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAcsTipDlg, CDialog)
//{{AFX_MSG_MAP(CAcsTipDlg)
ON_WM_CTLCOLOR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAcsTipDlg message handlers
HBRUSH CAcsTipDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
//TODO: Change any attributes of the DC here
pDC->SetTextColor(RGB(0,34,255));
//TODO: Return a different brush if the default is not desired
return hbr;
/*
if(nCtlColor== CTLCOLOR_LISTBOX)
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(0,0,255));
//此处设置字体的颜色
return (HBRUSH)m_brush.GetSafeHandle();
}
else
return CDialog::OnCtlColor
(pDC, pWnd, nCtlColor);
*/
}
BOOL CAcsTipDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_brush.CreateSolidBrush( RGB(0,0,255 ));
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 + -