?? phonebookdlg.h
字號:
#if !defined(AFX_PHONEBOOKDLG_H__E9AC725C_F489_11D3_9D93_02608CDD55B8__INCLUDED_)
#define AFX_PHONEBOOKDLG_H__E9AC725C_F489_11D3_9D93_02608CDD55B8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PhoneBookDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPhoneBookDlg dialog
class CPhonebookListCtrl;
class CPhoneBookDlg : public CDialog
{
// Construction
public:
CPhoneBookDlg(CMapStringToString* map,CWnd* pParent = NULL); // standard constructor
void InsertRow(CString name,CString phonenum);
void ModifyHeaderItems();
void FillListCtrl();
// Dialog Data
//{{AFX_DATA(CPhoneBookDlg)
enum { IDD = IDD_PHONE_BOOK };
CEdit m_cEditQuery;
CComboBox m_cComboQuery;
//}}AFX_DATA
CPhonebookListCtrl m_listctrl;
//CListCtrl m_listctrl;
int m_nRowInFocus;
CMenu *m_pContextMenu;
protected:
CMapStringToString* m_pMap;
CImageList * m_pImageHdrSmall;
CImageList * m_pImageList;
CImageList * m_pImageListSmall;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPhoneBookDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void ChangeView(long style);
void ChangeListCtrlStyle(DWORD dwStyle, BOOL bSetBits);
void RenewListCtrl(DWORD dwStyle, BOOL bSetBits);
CWinApp *pApp;
// Generated message map functions
//{{AFX_MSG(CPhoneBookDlg)
virtual BOOL OnInitDialog();
afx_msg void OnEditPhonebook();
afx_msg void OnDestroy();
afx_msg void OnRclickListPhonebook(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnAddPhonebook();
afx_msg void OnDelPhonebook();
afx_msg void OnQueryPhonebook();
afx_msg void OnButtonAdd();
afx_msg void OnChangeEditQuery();
afx_msg void OnNcDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int iItem;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PHONEBOOKDLG_H__E9AC725C_F489_11D3_9D93_02608CDD55B8__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -