|
// IcasSegmentDlg.cpp : implementation of the CIcasSegmentDlg class
//
#include "stdafx.h"
#include "ICAS.h"
#include "IcasSegmentDlg.h"
// CIcasSegmentDlg dialog
IMPLEMENT_DYNAMIC(CIcasSegmentDlg, CDialog)
CIcasSegmentDlg::CIcasSegmentDlg(int x, int y, ICASPOINT *pD, CWnd* pParent /*=NULL*/)
: CDialog(CIcasSegmentDlg::IDD, pParent), m_x(x), m_y(y), m_pD(pD)
{
m_pParent = pParent;
m_nID = CIcasSegmentDlg::IDD;
SetSeg(m_pD);
}
CIcasSegmentDlg::CIcasSegmentDlg(int x, int y, CWnd* pParent /*=NULL*/)
: CDialog(CIcasSegmentDlg::IDD, pParent), m_x(x), m_y(y)
{
m_pParent = pParent;
m_nID = CIcasSegmentDlg::IDD;
}
CIcasSegmentDlg::~CIcasSegmentDlg()
{
}
void CIcasSegmentDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Check(pDX, IDC_SEG_NORMAL, m_nNormal);
DDX_Check(pDX, IDC_SEG_PARALLEL, m_nParallel);
DDX_Check(pDX, IDC_SEG_MULTIPLE, m_nMultiple);
DDX_Check(pDX, IDC_SEG_RESERVE1, m_nReserve1);
DDX_Text(pDX, IDC_SEG_X, m_dx);
DDX_Text(pDX, IDC_SEG_Y, m_dy);
}
BEGIN_MESSAGE_MAP(CIcasSegmentDlg, CDialog)
ON_BN_CLICKED(IDC_SEG_NORMAL, CIcasSegmentDlg::OnBnClickedSegNormal)
ON_BN_CLICKED(IDC_SEG_PARALLEL, CIcasSegmentDlg::OnBnClickedSegParallel)
ON_BN_CLICKED(IDC_SEG_MULTIPLE, CIcasSegmentDlg::OnBnClickedSegMultiple)
ON_BN_CLICKED(IDC_SEG_RESERVE1, CIcasSegmentDlg::OnBnClickedSegReserve1)
END_MESSAGE_MAP()
// CIcasSegmentDlg message handlers
BOOL CIcasSegmentDlg::Create()
{
return CDialog::Create(m_nID, m_pParent);
}
BOOL CIcasSegmentDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CIcasSegmentDlg::SetWindowPos(&wndTop, m_x, m_y, 0, 0, SWP_NOSIZE);
return TRUE;
}
void CIcasSegmentDlg::OnBnClickedSegNormal()
{
if (((CButton*)GetDlgItem(IDC_SEG_NORMAL))->GetCheck())
m_nNormal = 1;
else
m_nNormal = 0;
}
void CIcasSegmentDlg::OnBnClickedSegParallel()
{
if (((CButton*)GetDlgItem(IDC_SEG_PARALLEL))->GetCheck())
m_nParallel = 1;
else
m_nParallel = 0;
}
void CIcasSegmentDlg::OnBnClickedSegMultiple()
{
if (((CButton*)GetDlgItem(IDC_SEG_MULTIPLE))->GetCheck())
m_nMultiple = 1;
else
m_nMultiple = 0;
}
void CIcasSegmentDlg::OnBnClickedSegReserve1()
{
if (((CButton*)GetDlgItem(IDC_SEG_RESERVE1))->GetCheck())
m_nReserve1 = 1;
else
m_nReserve1 = 0;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.