?? starvelocitydialog.cpp
字號(hào):
// StarVelocityDialog.cpp : implementation file
//
#include "StdAfx.h"
#include "Starz.h"
#include "StarzView.h"
#include "StarVelocityDialog.h"
#include <assert.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStarVelocityDialog dialog
BEGIN_MESSAGE_MAP(CStarVelocityDialog, CDialog)
//{{AFX_MSG_MAP(CStarVelocityDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
CStarVelocityDialog::CStarVelocityDialog(CWnd* pParent)
: CDialog(CStarVelocityDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CStarVelocityDialog)
velocity = 0;
//}}AFX_DATA_INIT
CStarzView* view = DYNAMIC_DOWNCAST(CStarzView, pParent);
assert(view);
this->velocity = view->getVelocity();
}
void CStarVelocityDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CStarVelocityDialog)
DDX_Text(pDX, IDC_VELOCITY, velocity);
DDV_MinMaxInt(pDX, velocity, 1, 1000);
//}}AFX_DATA_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CStarVelocityDialog message handlers
BOOL CStarVelocityDialog::OnInitDialog()
{
CDialog::OnInitDialog();
((CSpinButtonCtrl*)this->GetDlgItem(IDC_VELOCITYSPIN))->SetRange(1, 1000);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -