📄 addresslistdlg.h
字号:
// AddressListDlg.h : header file
//
#if !defined(AFX_ADDRESSLISTDLG_H__BE7BF635_E9C8_40B0_AD30_765EB0A7AB91__INCLUDED_)
#define AFX_ADDRESSLISTDLG_H__BE7BF635_E9C8_40B0_AD30_765EB0A7AB91__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxdb.h>
/* 界面编辑信息 */
typedef struct
{
CString strName;
bool bSex;
CString strCompany;
CString strPhoneInCompany;
CString strHomeAddress;
CString strPhoneInHome;
CString strMobile;
CString strMail;
CString strQq;
CString strMsn;
CString strMemory;
}INTERFACECTRLDATA;
/////////////////////////////////////////////////////////////////////////////
// CAddressListDlg dialog
class CAddressListDlg : public CDialog
{
// Construction
public:
CAddressListDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAddressListDlg)
enum { IDD = IDD_ADDRESSLIST_DIALOG };
CTreeCtrl m_tree_list;
CString m_address;
CString m_company;
CString m_mail;
CString m_memory;
CString m_mobile;
CString m_msn;
CString m_phoneInHome;
CString m_phoneInCompany;
CString m_qq;
int m_sex;
CString m_name;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAddressListDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CAddressListDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnCancel();
afx_msg void OnButtonAppend();
afx_msg void OnSelchangedTreeList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnClickTreeList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButtonRemove();
afx_msg void OnButtonAppendgroup();
afx_msg void OnButtonEdit();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
bool RemovePeople(int id);
bool RemoveGroup(int id);
void RefurTree();
int GetCurrentSelGroupId();
void CollapseTree();
void InitTreeList();
void SwitchData(INTERFACECTRLDATA& info, bool flag);
CDatabase m_database;
bool CheckInputInfo();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADDRESSLISTDLG_H__BE7BF635_E9C8_40B0_AD30_765EB0A7AB91__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -