📄 punishdlg.cpp
字号:
// PunishDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Forth.h"
#include "PunishDlg.h"
#include "ForthView.h"
#include "MainFrm.h"
#include "PunishSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPunishDlg dialog
CPunishDlg::CPunishDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPunishDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPunishDlg)
m_PunishId = _T("");
//}}AFX_DATA_INIT
}
void CPunishDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPunishDlg)
DDX_Text(pDX, IDC_EDIT1, m_PunishId);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPunishDlg, CDialog)
//{{AFX_MSG_MAP(CPunishDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPunishDlg message handlers
void CPunishDlg::OnOK()
{
// TODO: Add extra validation here
CMainFrame* frm=(CMainFrame*)AfxGetApp()->m_pMainWnd;
CForthView* pView=(CForthView*)frm->GetActiveView();
UpdateData();
pView->SeePunish(m_PunishId);
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -