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

📄 childfrm.cpp

📁 随着计算机信息技术的飞速发展
💻 CPP
字号:
// ChildFrm.cpp : implementation of the CChildFrame class
//

#include "stdafx.h"
#include "MultiWin.h"

#include "ChildFrm.h"

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

/////////////////////////////////////////////////////////////////////////////
// CChildFrame

IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)

BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
	//{{AFX_MSG_MAP(CChildFrame)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CChildFrame construction/destruction

CChildFrame::CChildFrame()
{
	// TODO: add member initialization code here
	
}

CChildFrame::~CChildFrame()
{
}

BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	if( !CMDIChildWnd::PreCreateWindow(cs) )
		return FALSE;

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CChildFrame diagnostics

#ifdef _DEBUG
void CChildFrame::AssertValid() const
{
	CMDIChildWnd::AssertValid();
}

void CChildFrame::Dump(CDumpContext& dc) const
{
	CMDIChildWnd::Dump(dc);
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CChildFrame message handlers

void CChildFrame::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
/*	
	// TODO: Add your message handler code here
			CRect rect;
			CGdiObject *pOldObject;
			pdc4->GetClipBox(&rect);     // Erase the area needed  
			CBrush backBrush(RGB(160,204,255));
			pOldObject = pdc4->SelectObject(&backBrush);
			pdc4->PatBlt(rect.left, rect.top, rect.Width(), rect.Height(), PATCOPY);
			pdc4->SelectObject(pOldObject);
			pdc4->SetBkMode(TRANSPARENT);
			CFont font;
			font.CreateFont(30,10,0,0,400,FALSE,FALSE,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS, \
							CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_SCRIPT,NULL);
			pOldObject = pdc4->SelectObject(&font);
			pdc4->SetTextColor(COLORREF(RGB(128,128,96)));
			for(int i = 0;i < rect.right;i += 200)//400)
				for(int j = 0; j< rect.bottom ; j += 66)
					pdc4->TextOut(i,j,"    100K遥传数据显示区 ");
			pdc4->SelectObject(pOldObject);
*/		
	// Do not call CMDIChildWnd::OnPaint() for painting messages
}

⌨️ 快捷键说明

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