📄 soutput.cpp
字号:
// Soutput.cpp : implementation file
//
#include "stdafx.h"
#include "alfa.h"
#include "Soutput.h"
#include "TeachMode.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSoutput dialog
CSoutput::CSoutput(CWnd* pParent /*=NULL*/)
: CDialog(CSoutput::IDD, pParent)
{
//{{AFX_DATA_INIT(CSoutput)
m_out = 17;
//}}AFX_DATA_INIT
}
void CSoutput::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSoutput)
DDX_Control(pDX, IDC_EDIT1, m_edit);
DDX_Text(pDX, IDC_EDIT1, m_out);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSoutput, CDialog)
//{{AFX_MSG_MAP(CSoutput)
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSoutput message handlers
void CSoutput::OnShowWindow(BOOL bShow, UINT nStatus)
{
CDialog::OnShowWindow(bShow, nStatus);
// TODO: Add your message handler code here
if(bShow==1)
{
CTeachMode * parent=(CTeachMode *)GetParent();
if(parent->flagShow==0)
{
m_out=17;
}
else
{
int idx=parent->curidx;
m_out=parent->command[idx].acommand.para.aout;
}
UpdateData(FALSE);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -