📄 bpannsetdlg.cpp
字号:
// BpannsetDlg.cpp : implementation file
//
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// BpannsetDlg dialog
CWnd *pwnd;
int m_hllayers=0,m_hlnodes=0,m_ilnodes=0, m_olnodes=0;
double m_learnratiotmp=0.0;
BpannsetDlg::BpannsetDlg(CWnd* pParent /*=NULL*/)
: CDialog(BpannsetDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(BpannsetDlg)
m_hl_layers = m_hllayers;
m_hl_nodes = m_hlnodes;
m_il_nodes = m_ilnodes;
m_ol_nodes = m_olnodes;
m_learnratio = m_learnratiotmp;
//}}AFX_DATA_INIT
}
void BpannsetDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(BpannsetDlg)
DDX_Text(pDX, IDC_HIDELAYER_LAYERS, m_hl_layers);
DDX_Text(pDX, IDC_HIDELAYER_NODES, m_hl_nodes);
DDX_Text(pDX, IDC_INLAYER_NODES, m_il_nodes);
DDX_Text(pDX, IDC_OUTLAYER_NODES, m_ol_nodes);
DDX_Text(pDX, IDC_LEARNRATIO, m_learnratio);
DDV_MinMaxDouble(pDX, m_learnratio, 0., 1.);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(BpannsetDlg, CDialog)
//{{AFX_MSG_MAP(BpannsetDlg)
ON_BN_CLICKED(IDC_SUBMIT, OnSubmit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// BpannsetDlg message handlers
void BpannsetDlg::OnSubmit()
{
// TODO: Add your control notification handler code here
// UpdateData(false);
UpdateData(TRUE);
}
void BpannsetDlg::OnOK()
{
// TODO: Add extra validation here
m_hlnodes = m_hl_nodes;
m_ilnodes = m_il_nodes;
m_hllayers = m_hl_layers;
m_olnodes = m_ol_nodes;
m_learnratiotmp = m_learnratio;
CDialog::OnOK();
}
int Ilnodes()
{
return m_ilnodes;
}
int Hllayer()
{
return m_hllayers;
}
int Hlnodes()
{
return m_hlnodes;
}
int Olnodes()
{
return m_olnodes;
}
double Lratio()
{
return m_learnratiotmp;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -