⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newstatic.cpp

📁 聊天室 可以群聊 exe文件图标可以在任务栏的通知区显示,
💻 CPP
字号:
// NewStatic.cpp : implementation file
//

#include "stdafx.h"
#include "猩猩即时通.h"
#include "NewStatic.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNewStatic

CNewStatic::CNewStatic()
{
}

CNewStatic::~CNewStatic()
{
}


BEGIN_MESSAGE_MAP(CNewStatic, CStatic)
	//{{AFX_MSG_MAP(CNewStatic)
	ON_WM_DRAWITEM()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNewStatic message handlers

void CNewStatic::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) 
{
	// TODO: Add your message handler code here and/or call default
	CDC DC;
	DC.Attach(lpDrawItemStruct->hDC);
	CRect rect = lpDrawItemStruct->rcItem;
	CPen pen;
	pen.CreatePen(PS_SOLID, 1, RGB(0, 219, 219));
	DC.SelectObject(&pen);
	DC.FrameRect(&rect, NULL);

	DC.Detach();
	DC.DeleteDC();

	CStatic::OnDrawItem(nIDCtl, lpDrawItemStruct);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -