// DialCesptNew3PVes.cpp : implementation file // #include "stdafx.h" #include "geomative.h" #include "DialCesptNew3PVes.h" #include "floatedit.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDialCesptNew3PVes dialog CDialCesptNew3PVes::CDialCesptNew3PVes(CWnd* pParent /*=NULL*/) : CDialog(CDialCesptNew3PVes::IDD, pParent) { //{{AFX_DATA_INIT(CDialCesptNew3PVes) m_strStacking = _T("1"); //}}AFX_DATA_INIT UINT m_unIterNum = 0; } void CDialCesptNew3PVes::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDialCesptNew3PVes) DDX_Control(pDX, IDC_NEW_3PVES_SPT_B, m_edB); DDX_Control(pDX, IDC_NEW_3PVES_SPT_A, m_edA); DDX_Text(pDX, IDC_NEW_3PVES_STACKING, m_strStacking); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDialCesptNew3PVes, CDialog) //{{AFX_MSG_MAP(CDialCesptNew3PVes) ON_WM_SHOWWINDOW() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDialCesptNew3PVes message handlers void CDialCesptNew3PVes::OnShowWindow(BOOL bShow, UINT nStatus) { CDialog::OnShowWindow(bShow, nStatus); // TODO: Add your message handler code here CDialog::OnShowWindow(bShow, nStatus); // TODO: Add your message handler code here 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")); GetDlgItem(IDC_NEW_3PVES_STACKING)->SetWindowText(_T("1")); } } BOOL CDialCesptNew3PVes::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); }