⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpdconnectdlg.cpp

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 CPP
字号:
// MPDConnectDlg.cpp : implementation file//#include "stdafx.h"#include "guiMPIJob.h"#include "MPDConnectDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CMPDConnectDlg dialogCMPDConnectDlg::CMPDConnectDlg(CWnd* pParent /*=NULL*/)	: CDialog(CMPDConnectDlg::IDD, pParent){	//{{AFX_DATA_INIT(CMPDConnectDlg)	m_host = _T("");	m_phrase = _T("");	m_bPhraseChecked = FALSE;	m_port = 0;	m_bPortChecked = FALSE;	//}}AFX_DATA_INIT}void CMPDConnectDlg::DoDataExchange(CDataExchange* pDX){	CDialog::DoDataExchange(pDX);	//{{AFX_DATA_MAP(CMPDConnectDlg)	DDX_Control(pDX, IDC_PORT, m_port_edit);	DDX_Control(pDX, IDC_PHRASE, m_phrase_edit);	DDX_Text(pDX, IDC_JOB_HOST, m_host);	DDX_Text(pDX, IDC_PHRASE, m_phrase);	DDX_Check(pDX, IDC_PHRASE_CHK, m_bPhraseChecked);	DDX_Text(pDX, IDC_PORT, m_port);	DDV_MinMaxInt(pDX, m_port, 1, 65000);	DDX_Check(pDX, IDC_PORT_CHK, m_bPortChecked);	//}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CMPDConnectDlg, CDialog)	//{{AFX_MSG_MAP(CMPDConnectDlg)	ON_BN_CLICKED(IDC_PORT_CHK, OnPortChk)	ON_BN_CLICKED(IDC_PHRASE_CHK, OnPhraseChk)	//}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CMPDConnectDlg message handlersBOOL CMPDConnectDlg::OnInitDialog() {	CDialog::OnInitDialog();	m_phrase_edit.EnableWindow(FALSE);	m_port_edit.EnableWindow(FALSE);	return TRUE;  // return TRUE unless you set the focus to a control	              // EXCEPTION: OCX Property Pages should return FALSE}void CMPDConnectDlg::OnPortChk() {    UpdateData();    m_port_edit.EnableWindow(m_bPortChecked);}void CMPDConnectDlg::OnPhraseChk() {    UpdateData();    m_phrase_edit.EnableWindow(m_bPhraseChecked);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -