📄 dialog1.cpp
字号:
// dialog1.cpp : implementation file
//
#include "stdafx.h"
#include "xiuhua.h"
#include "dialog1.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// dialog1 dialog
dialog1::dialog1(CWnd* pParent /*=NULL*/)
: CDialog(dialog1::IDD, pParent)
{
//{{AFX_DATA_INIT(dialog1)
m_Flower_coordinate_x = 300;
m_Flower_coordinate_y = 300;
m_Flower_begin = 34;
m_Flower_over = 37150;
m_Flower_Speed = 1;
m_Flower_Scale=5;//V_Flower_Scale;
// m_Flower_Scale.SetTicFreq(5);
//}}AFX_DATA_INIT
}
void dialog1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(dialog1)
DDX_Text(pDX, IDC_EDIT1, m_Flower_coordinate_x);
DDV_MinMaxLong(pDX, m_Flower_coordinate_x, 0, 400);
DDX_Text(pDX, IDC_EDIT2, m_Flower_coordinate_y);
DDV_MinMaxLong(pDX, m_Flower_coordinate_y, 0, 400);
DDX_Text(pDX, IDC_EDIT3, m_Flower_begin);
DDV_MinMaxLong(pDX, m_Flower_begin, 34, 10000);
DDX_Text(pDX, IDC_EDIT4, m_Flower_over);
DDV_MinMaxLong(pDX, m_Flower_over, 11000, 37150);
DDX_Slider(pDX, IDC_SLIDER1, m_Flower_Speed);
DDX_Slider(pDX, IDC_SLIDER2, m_Flower_Scale);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(dialog1, CDialog)
//{{AFX_MSG_MAP(dialog1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// dialog1 message handlers
BOOL dialog1::OnCommand(WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
return CDialog::OnCommand(wParam, lParam);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -