a
This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
// opcesptcustomdlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "geomative.h"
|
||||
#include "opcesptcustomdlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COpCESptCUSTOMDlg dialog
|
||||
|
||||
|
||||
COpCESptCUSTOMDlg::COpCESptCUSTOMDlg(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(COpCESptCUSTOMDlg::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(COpCESptCUSTOMDlg)
|
||||
m_unIterNum = 0;
|
||||
m_strStacking = _T("1");
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void COpCESptCUSTOMDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(COpCESptCUSTOMDlg)
|
||||
DDX_Control(pDX, IDC_SPT_K, m_edK);
|
||||
DDX_Control(pDX, IDC_SPT_Y, m_edY);
|
||||
DDX_Control(pDX, IDC_SPT_X, m_edX);
|
||||
DDX_Control(pDX, IDC_SPT_B, m_edB);
|
||||
DDX_Control(pDX, IDC_SPT_A, m_edA);
|
||||
DDX_Text(pDX, IDC_ITER_NUM, m_strStacking);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(COpCESptCUSTOMDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(COpCESptCUSTOMDlg)
|
||||
ON_WM_SHOWWINDOW()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COpCESptCUSTOMDlg message handlers
|
||||
|
||||
void COpCESptCUSTOMDlg::OnShowWindow(BOOL bShow, UINT nStatus)
|
||||
{
|
||||
CDialog::OnShowWindow(bShow, nStatus);
|
||||
|
||||
// TODO: Add your message handler code here
|
||||
int iN = (int)VAL_ZERO;
|
||||
CString szLabel = _T("");
|
||||
|
||||
if (TRUE == bShow)
|
||||
{
|
||||
m_edA.SetIntLimitLen(5);
|
||||
m_edA.SetDecLimitLen(2);
|
||||
m_edA.SetWindowText(_T("0"));
|
||||
|
||||
m_edB.SetIntLimitLen(5);
|
||||
m_edB.SetDecLimitLen(2);
|
||||
m_edB.SetWindowText(_T("0"));
|
||||
|
||||
m_edX.SetIntLimitLen(5);
|
||||
m_edX.SetDecLimitLen(2);
|
||||
m_edX.SetWindowText(_T("0"));
|
||||
|
||||
m_edY.SetIntLimitLen(5);
|
||||
m_edY.SetDecLimitLen(2);
|
||||
m_edY.SetWindowText(_T("0"));
|
||||
|
||||
m_edK.SetIntLimitLen(5);
|
||||
m_edK.SetDecLimitLen(2);
|
||||
m_edK.SetIsMinus(TRUE);
|
||||
m_edK.SetWindowText(_T("0"));
|
||||
|
||||
iN = 1;
|
||||
// while (iN <= MAXN) //useless by waston
|
||||
// while (iN <= 30) //useless by waston
|
||||
// {
|
||||
// szLabel.Empty();
|
||||
// szLabel.Format(_T("%d"), iN);
|
||||
//
|
||||
// this->m_cbN.AddString(szLabel);
|
||||
// iN++;
|
||||
// }
|
||||
// this->m_cbN.SetCurSel((int)VAL_ZERO);
|
||||
}
|
||||
}
|
||||
|
||||
BOOL COpCESptCUSTOMDlg::PreTranslateMessage(MSG* pMsg)
|
||||
{
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
if(pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_RETURN)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if(pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_ESCAPE)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
return CDialog::PreTranslateMessage(pMsg);
|
||||
}
|
||||
|
||||
BOOL COpCESptCUSTOMDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
GetDlgItem(IDC_ITER_NUM)->SetWindowText(_T("1"));
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
Reference in New Issue
Block a user