// inputdlg.cpp : implementation of the CInputDlg class // // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #include "vcterm.h" #include "InputDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CInputDlg dialog CInputDlg::CInputDlg(CWnd* pParent) : CDialog(CInputDlg::IDD, pParent) { //{{AFX_DATA_INIT(CInputDlg) m_strEdit = ""; //}}AFX_DATA_INIT } void CInputDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CInputDlg) DDX_Text(pDX, IDC_EDIT1, m_strEdit); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CInputDlg, CDialog) //{{AFX_MSG_MAP(CInputDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CInputDlg message handlers BOOL CInputDlg::OnInitDialog() { CDialog::OnInitDialog(); GetDlgItem(IDC_STATIC1)->SetWindowText(m_strPrompt); ((CEdit*)GetDlgItem(IDC_EDIT1))->SetSel(0,-1); GetDlgItem(IDC_EDIT1)->SetFocus(); return FALSE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }