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

📄 overlay.cpp

📁 《Visual C++视频技术方案宝典》配套光盘
💻 CPP
字号:
// Overlay.cpp : implementation file
//

#include "stdafx.h"
#include "Capture.h"
#include "Overlay.h"

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

/////////////////////////////////////////////////////////////////////////////
// COverlay dialog


COverlay::COverlay(CWnd* pParent /*=NULL*/)
	: CDialog(COverlay::IDD, pParent)
{
	//{{AFX_DATA_INIT(COverlay)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void COverlay::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(COverlay)

	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(COverlay, CDialog)
	//{{AFX_MSG_MAP(COverlay)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COverlay message handlers

void COverlay::OnPaint() 
{
	CPaintDC dc(this); // device context for painting

	CRect rc;
	GetClientRect(rc);
	CBrush brush(RGB(255,0,255));
	dc.FillRect(rc,&brush);
//	pDC->DeleteDC();
	// TODO: Add your message handler code here
	
	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

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