📄 ups.cpp
字号:
// Ups.cpp : implementation file
//
#include "stdafx.h"
#include "alfa.h"
#include "Ups.h"
#include "Main.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUps dialog
CUps::CUps(CWnd* pParent /*=NULL*/)
: CDialog(CUps::IDD, pParent)
{
//{{AFX_DATA_INIT(CUps)
m_edt = 10;
//}}AFX_DATA_INIT
}
void CUps::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CUps)
DDX_Control(pDX, IDC_EDIT1, m_edit);
DDX_Text(pDX, IDC_EDIT1, m_edt);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CUps, CDialog)
//{{AFX_MSG_MAP(CUps)
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CUps message handlers
void CUps::OnShowWindow(BOOL bShow, UINT nStatus)
{
CDialog::OnShowWindow(bShow, nStatus);
// TODO: Add your message handler code here
if(bShow==1) {
CMain * main=(CMain *)GetParent();
m_edt=main->dlgfixedmode->moveparam.speed_up_main;
UpdateData(FALSE);
main->dlgcur=this;
}
}
void CUps::OnOK()
{
// TODO: Add extra validation here
CMain * main=(CMain *)GetParent();
UpdateData();
main->dlgfixedmode->moveparam.speed_up_main=m_edt;
ShowWindow(FALSE);
main->dlgfixedmode->ShowWindow(TRUE);
}
void CUps::OnCancel()
{
// TODO: Add extra cleanup here
CMain * main=(CMain *)GetParent();
ShowWindow(FALSE);
main->dlgfixedmode->ShowWindow(TRUE);
}
BOOL CUps::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
h_SkinDialog.SubClassDialog(m_hWnd);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -