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

📄 dialog2.cpp

📁 设置文字使文字在屏幕是运动,当运动到最右边,则另起一行重新运动
💻 CPP
字号:
// dialog2.cpp : implementation file
//

#include "stdafx.h"
#include "character_motion.h"
#include "dialog2.h"

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

/////////////////////////////////////////////////////////////////////////////
// dialog2 dialog
int dialog2::x1=0;
int dialog2::x2=0;
int dialog2::y1=0;
int dialog2::y2=0;

dialog2::dialog2(CWnd* pParent /*=NULL*/)
	: CDialog(dialog2::IDD, pParent)
{
	//{{AFX_DATA_INIT(dialog2)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	    
}


void dialog2::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(dialog2)
		DDX_Text(pDX, IDC_EDIT1, x1);
	    DDX_Text(pDX, IDC_EDIT2, x2);
	    DDX_Text(pDX, IDC_EDIT3, y1);
	    DDX_Text(pDX, IDC_EDIT4, y2);
	//}}AFX_DATA_MAP
	
}


BEGIN_MESSAGE_MAP(dialog2, CDialog)
	//{{AFX_MSG_MAP(dialog2)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// dialog2 message handlers

⌨️ 快捷键说明

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