?? title.cpp
字號:
// Title.cpp : implementation file
//
#include "stdafx.h"
#include "pitc.h"
#include "Title.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTitle
CTitle::CTitle()
{
}
CTitle::~CTitle()
{
}
BEGIN_MESSAGE_MAP(CTitle, CStatic)
//{{AFX_MSG_MAP(CTitle)
ON_WM_CTLCOLOR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTitle message handlers
HBRUSH CTitle::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CStatic::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
CRect rc;
GetClientRect( &rc );
//背景畫刷
CBrush Brush( COLOR_BTNFACE );
HBRUSH br = (HBRUSH)Brush.GetSafeHandle();
pDC->FillRect( &rc, &Brush );
//文字顏色
pDC->SetTextColor( RGB(0,0,255) );
pDC->SetBkMode( TRANSPARENT );
Brush.Detach();
return br;
// TODO: Return a different brush if the default is not desired
return hbr;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -