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

📄 myscreensvrwnd.cpp

📁 "Visual C++.net实践与提高-深入Windows编程"的源代码
💻 CPP
字号:
// MyScreenSvrWnd.cpp : implementation file
//

#include "stdafx.h"
#include "MyScreenSvr.h"
#include "MyScreenSvrWnd.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyScreenSvrWnd

CMyScreenSvrWnd::CMyScreenSvrWnd(CWnd* pwnd /*= NULL*/)
:CScreenSvrWnd(pwnd)
{
}

CMyScreenSvrWnd::~CMyScreenSvrWnd()
{
}


BEGIN_MESSAGE_MAP(CMyScreenSvrWnd, CScreenSvrWnd)
	//{{AFX_MSG_MAP(CMyScreenSvrWnd)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CMyScreenSvrWnd message handlers

void CMyScreenSvrWnd::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	CRect rect ;
	GetWindowRect(&rect) ;
	CSize size = dc.GetOutputTextExtent("Produced By MYH!") ;
	dc.SetTextColor(RGB(255,255,255)) ;
	dc.SetBkColor(RGB(0,0,0)) ;
	dc.TextOut(rect.Width()-size.cx,rect.Height()-size.cy,"Produced by MYH!") ;
}

⌨️ 快捷键说明

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