📄 formationparameter.cpp
字号:
// FormationParameter.cpp : implementation file
//
#include "stdafx.h"
#include "储层损害矿场评价软件.h"
#include "FormationParameter.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFormationParameter dialog
CFormationParameter::CFormationParameter(CWnd* pParent /*=NULL*/)
: CDialog(CFormationParameter::IDD, pParent)
{
bBound1 = bBound2 = TRUE;
//{{AFX_DATA_INIT(CFormationParameter)
m_ca = 0.0;
m_d1 = 0.0;
m_d2 = 0.0;
m_hkout = 0.0;
m_hkx = 0.0;
m_hky = 0.0;
m_hkz = 0.0;
m_ct = 0.0;
m_alf=0.0;
m_h = 0.0;
m_hp = 0.0;
m_phi = 0.0;
//}}AFX_DATA_INIT
}
void CFormationParameter::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFormationParameter)
DDX_Text(pDX, IDC_EDIT_CA, m_ca);
DDX_Text(pDX, IDC_EDIT_D1, m_d1);
DDX_Text(pDX, IDC_EDIT_D2, m_d2);
DDX_Text(pDX, IDC_EDIT_HKOUT, m_hkout);
DDX_Text(pDX, IDC_EDIT_HKX, m_hkx);
DDX_Text(pDX, IDC_EDIT_HKY, m_hky);
DDX_Text(pDX, IDC_EDIT_HKZ, m_hkz);
DDX_Text(pDX, IDC_EDIT_CT, m_ct);
DDX_Text(pDX, IDC_EDIT_H, m_h);
DDX_Text(pDX, IDC_EDIT_HP, m_hp);
DDX_Text(pDX, IDC_EDIT_PHI, m_phi);
DDX_Text(pDX, IDC_EDIT_alf, m_alf);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CFormationParameter, CDialog)
//{{AFX_MSG_MAP(CFormationParameter)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFormationParameter message handlers
BOOL CFormationParameter::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
if(!bBound1)
GetDlgItem(IDC_EDIT_D1)->EnableWindow(FALSE);
else
GetDlgItem(IDC_EDIT_D1)->EnableWindow(TRUE);
if(!bBound2)
GetDlgItem(IDC_EDIT_D2)->EnableWindow(FALSE);
else
GetDlgItem(IDC_EDIT_D2)->EnableWindow(TRUE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CFormationParameter::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -