// FindDlg.cpp : implementation file // #include "stdafx.h" #include "FindDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CFindDlg dialog CFindDlg::CFindDlg(CWnd* pParent /*=NULL*/) : CModelessDialog(CFindDlg::IDD, pParent) { //{{AFX_DATA_INIT(CFindDlg) m_strName = _T(""); //}}AFX_DATA_INIT } void CFindDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CFindDlg) DDX_Control(pDX, IDC_EDIT_FINDNAME, m_ctrlName); DDX_Text(pDX, IDC_EDIT_FINDNAME, m_strName); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CFindDlg, CModelessDialog) //{{AFX_MSG_MAP(CFindDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CFindDlg message handlers BOOL CFindDlg::OnInitDialog() { CDialog::OnInitDialog(); m_ctrlName.SetFocus(); return FALSE; // return TRUE unless you set the focus to a control }