📄 backs.cpp
字号:
// Backs.cpp : implementation file
//
#include "stdafx.h"
#include "alfa.h"
#include "Backs.h"
#include "Main.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBacks dialog
CBacks::CBacks(CWnd* pParent /*=NULL*/)
: CDialog(CBacks::IDD, pParent)
{
//{{AFX_DATA_INIT(CBacks)
m_edt = 10;
//}}AFX_DATA_INIT
}
void CBacks::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBacks)
DDX_Control(pDX, IDC_EDIT1, m_edit1);
DDX_Text(pDX, IDC_EDIT1, m_edt);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CBacks, CDialog)
//{{AFX_MSG_MAP(CBacks)
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBacks message handlers
void CBacks::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_back_main;
UpdateData(FALSE);
main->dlgcur=this;
}
}
void CBacks::OnOK()
{
// TODO: Add extra validation here
CMain * main=(CMain *)GetParent();
UpdateData();
main->dlgfixedmode->moveparam.speed_back_main=m_edt;
ShowWindow(FALSE);
main->dlgfixedmode->ShowWindow(TRUE);
}
void CBacks::OnCancel()
{
// TODO: Add extra cleanup here
CMain * main=(CMain *)GetParent();
ShowWindow(FALSE);
main->dlgfixedmode->ShowWindow(TRUE);
}
BOOL CBacks::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 + -