?? sdelay.cpp
字號:
// Sdelay.cpp : implementation file
//
#include "stdafx.h"
#include "alfa.h"
#include "Sdelay.h"
#include "TeachMode.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSdelay dialog
CSdelay::CSdelay(CWnd* pParent /*=NULL*/)
: CDialog(CSdelay::IDD, pParent)
{
//{{AFX_DATA_INIT(CSdelay)
m_delay = 0.0f;
//}}AFX_DATA_INIT
}
void CSdelay::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSdelay)
DDX_Control(pDX, IDC_EDIT1, m_edit);
DDX_Text(pDX, IDC_EDIT1, m_delay);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSdelay, CDialog)
//{{AFX_MSG_MAP(CSdelay)
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSdelay message handlers
void CSdelay::OnShowWindow(BOOL bShow, UINT nStatus)
{
CDialog::OnShowWindow(bShow, nStatus);
CString Temp_str;
// TODO: Add your message handler code here
if(bShow==1) {
CTeachMode * parent=(CTeachMode *)GetParent();
if(parent->flagShow==0) m_delay=0;
else {
int idx=parent->curidx;
m_delay=parent->command[idx].acommand.para.sdelay;
}
Temp_str.Format("%6.2f", m_delay);
GetDlgItem(IDC_EDIT1)->SetWindowText(Temp_str);
// UpdateData(FALSE);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -