88 lines
1.7 KiB
C++
88 lines
1.7 KiB
C++
// DlgEdit.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
//#include "tarch.h"
|
|
#include "DlgEdit.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgEdit dialog
|
|
|
|
|
|
CDlgEdit::CDlgEdit(CWnd* pParent /*=NULL*/)
|
|
: GlwCAcUiDialog(CDlgEdit::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CDlgEdit)
|
|
m_bCurblc = 0;
|
|
m_blcnum = 0;
|
|
//}}AFX_DATA_INIT
|
|
Cmdok=false;
|
|
}
|
|
|
|
|
|
void CDlgEdit::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CDlgEdit)
|
|
DDX_Radio(pDX, IDC_RADIO1, m_bCurblc);
|
|
DDX_Text(pDX, IDC_EDIT_BLCNUM, m_blcnum);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CDlgEdit, GlwCAcUiDialog)
|
|
//{{AFX_MSG_MAP(CDlgEdit)
|
|
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
|
|
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgEdit message handlers
|
|
|
|
// Zyu modify on 100721,支持64位
|
|
//int CDlgEdit::DoModal()
|
|
INT_PTR CDlgEdit::DoModal()
|
|
{
|
|
// TODO: Add your specialized code here and/or call the base class
|
|
|
|
return CDialog::DoModal();
|
|
}
|
|
|
|
BOOL CDlgEdit::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
// TODO: Add extra initialization here
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void CDlgEdit::OnOK()
|
|
{
|
|
// TODO: Add extra validation here
|
|
Cmdok=true;
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
void CDlgEdit::OnRadio1()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
m_bCurblc=0;
|
|
|
|
}
|
|
|
|
void CDlgEdit::OnRadio2()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
m_bCurblc=1;
|
|
|
|
}
|