70 lines
1.4 KiB
C++
70 lines
1.4 KiB
C++
// CRYPTDlg.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "afxdialogex.h"
|
|
#include "CRYPTDlg.h"
|
|
|
|
|
|
// CRYPTDlg dialog
|
|
|
|
IMPLEMENT_DYNAMIC(CRYPTDlg, CDialog)
|
|
|
|
CRYPTDlg::CRYPTDlg(CWnd* pParent /*=nullptr*/)
|
|
: CDialog(IDD_RYPT_DLG, pParent)
|
|
, m_iRYDistance(0)
|
|
, m_dRYPTZGBG(0)
|
|
, m_dDistance(0)
|
|
{
|
|
|
|
}
|
|
|
|
CRYPTDlg::~CRYPTDlg()
|
|
{
|
|
}
|
|
|
|
void CRYPTDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
DDX_Radio(pDX, IDC_RADI_FREE_DISTANCE, m_iRYDistance);
|
|
DDX_Text(pDX, IDC_EDIT_RYPT_ZGBG, m_dRYPTZGBG);
|
|
DDX_Text(pDX, IDC_EDIT_DISTANCE, m_dDistance);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CRYPTDlg, CDialog)
|
|
ON_BN_CLICKED(IDC_RADI_FREE_DISTANCE, &CRYPTDlg::OnBnClickedRadiFreeDistance)
|
|
ON_BN_CLICKED(IDC_RADIO_CRETAIN_DISTANCE, &CRYPTDlg::OnBnClickedRadioCretainDistance)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CRYPTDlg message handlers
|
|
|
|
|
|
BOOL CRYPTDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
// TODO: Add extra initialization here
|
|
|
|
GetDlgItem(IDC_EDIT_DISTANCE)->EnableWindow(FALSE);
|
|
UpdateData(FALSE);
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
|
|
void CRYPTDlg::OnBnClickedRadiFreeDistance()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
GetDlgItem(IDC_EDIT_DISTANCE)->EnableWindow(FALSE);
|
|
}
|
|
|
|
|
|
void CRYPTDlg::OnBnClickedRadioCretainDistance()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
GetDlgItem(IDC_EDIT_DISTANCE)->EnableWindow(TRUE);
|
|
}
|