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

📄 mytabel.cpp

📁 彩票抽奖机
💻 CPP
字号:
// MyTabel.cpp : implementation file
//

#include "stdafx.h"
#include "Lottery.h"
#include "MyTabel.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyTabel

CMyTabel::CMyTabel()
{
	m_font.CreateFont(-24,-20,0,0,600,0,0,0,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,FF_ROMAN,"宋体");
}

CMyTabel::~CMyTabel()
{
}


BEGIN_MESSAGE_MAP(CMyTabel, CStatic)
	//{{AFX_MSG_MAP(CMyTabel)
	ON_WM_CREATE()
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyTabel message handlers

int CMyTabel::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CStatic::OnCreate(lpCreateStruct) == -1)
		return -1;
	
//	this->SetFont(m_font);	
	return 0;
}

void CMyTabel::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	CString str ;
	GetWindowText(str);
	dc.SetBkMode(TRANSPARENT);
	dc.SetTextColor(RGB(0,0,255));
	dc.SelectObject(&m_font);
	dc.TextOut(0,2,str);
}

BOOL CMyTabel::PreTranslateMessage(MSG* pMsg) 
{

	return CStatic::PreTranslateMessage(pMsg);
}

LRESULT CMyTabel::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
{
	return CStatic::DefWindowProc(message, wParam, lParam);
}

⌨️ 快捷键说明

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