📄 hy.cpp
字号:
// Hy.cpp : implementation file
//
#include "stdafx.h"
#include "ww.h"
#include "Hy.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHy dialog
CHy::CHy(CWnd* pParent /*=NULL*/)
: CDialog(CHy::IDD, pParent)
{
//{{AFX_DATA_INIT(CHy)
// NOTE: the ClassWizard will add member initialization here
xx=250;
xs=250;
//}}AFX_DATA_INIT
}
void CHy::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHy)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CHy, CDialog)
//{{AFX_MSG_MAP(CHy)
ON_WM_PAINT()
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CHy message handlers
void CHy::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
void CHy::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
// Do not call CDialog::OnPaint() for painting messages
SetTimer(1, 500, NULL);
CString str1="欢迎使用请求调页存储管理的模拟系统";
CString str2="作者:赵秀清 单位:华东交通大学信息学院05计算机4班学号:20050610040407";
CString str5="联系方式:";
CString str7="qq:350557928";
CString str6="邮箱:zhaoxiuqingzhao@tom.com";
CString str8="电话:13767077046";
//dc.SetBkColor(RGB(0,128,0));
dc.TextOut(xx,200,str2);
dc.TextOut(xs,20,str1);
dc.TextOut(120,80,str5);
dc.TextOut(200,100,str6);
dc.TextOut(200,140,str7);
dc.TextOut(200,160,str8);
}
//DEL int CHy::r()
//DEL {
//DEL return 1;
//DEL }
void CHy::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
xx=(xx-10)%250;
xs=(xs-10)%250;
Invalidate();
CDialog::OnTimer(nIDEvent);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -