www.pudn.com > NoteBookVC++.rar > HELPEDIT.cpp
// HELPEDIT.cpp : implementation file
//
#include "stdafx.h"
#include "记事本.h"
#include "HELPEDIT.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// HELPEDIT
HELPEDIT::HELPEDIT()
{
}
HELPEDIT::~HELPEDIT()
{
}
BEGIN_MESSAGE_MAP(HELPEDIT, CEdit)
//{{AFX_MSG_MAP(HELPEDIT)
ON_WM_CHAR()
ON_WM_PAINT()
ON_WM_RBUTTONDOWN()
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// HELPEDIT message handlers
void HELPEDIT::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
}
void HELPEDIT::OnPaint()
{
CPaintDC dc(this); // device context for painting
dc.SetTextColor(RGB(0,0,255));
// TODO: Add your message handler code here
dc.TextOut(110,10,"记事本 2.0 版");
dc.TextOut(63,40,"同Windows 记事本一样,是个文");
dc.TextOut(30,55,"本编辑器,它包含Windows 记事本的");
dc.TextOut(30,70,"基本功能,并且热键设置均未改变。");
dc.TextOut(30,85,"在此基础上扩充了一些功能:");
dc.TextOut(63,110,"新增键盘发声,使您按键更有节");
dc.TextOut(30,125,"奏感.");
dc.TextOut(63,140,"新增字体,背景颜色设置,使您");
dc.TextOut(30,155,"阅读更轻松,尽可能减少视疲劳.");
dc.TextOut(63,170,"新增背景音乐,使您录入,阅读");
dc.TextOut(30,185,"更有情调.");
dc.TextOut(63,200,"新增定时存盘功能,使您不再为");
dc.TextOut(30,215,"意外丢文件而烦恼.");
dc.TextOut(63,240,"如果您对此程序有什么问题或建");
dc.TextOut(30,255,"议,请同我联系:");
dc.TextOut(63,270,"gamemake_boy@163.net");
dc.TextOut(170,290,"2001年8月9日");
dc.DeleteDC();
// Do not call CEdit::OnPaint() for painting messages
}
void HELPEDIT::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
}
void HELPEDIT::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
}