www.pudn.com > VC++访问DAO数据库.rar > FindDlg.cpp


// FindDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "hr.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*/) 
	: CDialog(CFindDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CFindDlg) 
	m_strCompany = _T(""); 
	m_bDate = TRUE; 
	m_bDepartment = TRUE; 
	m_strDepartment = _T(""); 
	m_bDuty = TRUE; 
	m_strDuty = _T(""); 
	m_bName = TRUE; 
	m_strName = _T(""); 
	m_strDate = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
void CFindDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CFindDlg) 
	DDX_CBString(pDX, IDC_COMPANY_COMBO, m_strCompany); 
	DDX_Check(pDX, IDC_DATE_CHECK, m_bDate); 
	DDX_Check(pDX, IDC_DEPARTMENT_CHECK, m_bDepartment); 
	DDX_CBString(pDX, IDC_DEPARTMENT_COMBO, m_strDepartment); 
	DDX_Check(pDX, IDC_DUTY_CHECK, m_bDuty); 
	DDX_Text(pDX, IDC_DUTY_EDIT, m_strDuty); 
	DDX_Check(pDX, IDC_NAME_CHECK, m_bName); 
	DDX_Text(pDX, IDC_NAME_EDIT, m_strName); 
	DDX_Text(pDX, IDC_DATE_EDIT, m_strDate); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CFindDlg, CDialog) 
	//{{AFX_MSG_MAP(CFindDlg) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CFindDlg message handlers 
 
BOOL CFindDlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}