addressbookdlg.h
来自「VC++编程宝典,电子工业出版社出版,源代码,第一部分」· C头文件 代码 · 共 83 行
H
83 行
// AddressBookDlg.h : header file
//
#if !defined(AFX_ADDRESSBOOKDLG_H__FC0220A8_0F0B_11D2_8DB3_204C4F4F5020__INCLUDED_)
#define AFX_ADDRESSBOOKDLG_H__FC0220A8_0F0B_11D2_8DB3_204C4F4F5020__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CAddressBookDlg dialog
#include "Contact.h"
#include "AutoCompleteComboBox.h"
class CAddressBookDlg : public CDialog
{
// Construction
public:
CAddressBookDlg(CWnd* pParent = NULL); // standard constructor
protected:
BOOL CanSerialize();
void LoadRecords();
void FillContactsComboBox();
void SaveRecords();
void InitializeDialog();
protected:
TContactCollection m_Contacts;
// Dialog Data
//{{AFX_DATA(CAddressBookDlg)
enum { IDD = IDD_ADDRESSBOOK_DIALOG };
CAutoCompleteComboBox m_cboNames;
CButton m_btnWebPage;
CButton m_btnEmail;
CString m_strAddress1;
CString m_strAddress2;
CString m_strCity;
CString m_strState;
CString m_strZip;
CString m_strHomePhone;
CString m_strWorkPhone;
CString m_strEmail;
CString m_strWebPage;
CString m_strNotes;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAddressBookDlg)
public:
virtual void Serialize(CArchive& ar);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CAddressBookDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnAbout();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnDestroy();
afx_msg void OnSelchangeCboNames();
afx_msg void OnBtnWebPage();
afx_msg void OnBtnSave();
afx_msg void OnBtnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADDRESSBOOKDLG_H__FC0220A8_0F0B_11D2_8DB3_204C4F4F5020__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?