punishdlg.cpp

来自「该软件实现了一个图书馆管理系统」· C++ 代码 · 共 55 行

CPP
55
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?