phonebookpage.h

来自「代码为windows下的无线猫的应用程序(对AT指令的操作)。」· C头文件 代码 · 共 93 行

H
93
字号
#if !defined(AFX_PHONEBOOKPAGE_H__1E825262_4C30_4D9B_9B28_2970FE536540__INCLUDED_)
#define AFX_PHONEBOOKPAGE_H__1E825262_4C30_4D9B_9B28_2970FE536540__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PhoneBookPage.h : header file
//

#include "DialogResize.h"
#include "IconButton.h"
#include "StringSet.H"
#include "ProgDlg.h"
#include "DialInfoDlg.h"
#include "ReplySMSDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CPhoneBookPage dialog

class CPhoneBookPage : public CDialogResize
{
// Construction
public:
	CProgDlg m_ProgDlg;
	CDialInfoDlg	m_InfoDlg;
	CReplySMSDlg	m_ReplyDlg;

	DWORD ThreadId;
	HANDLE ExitEvent;
	HANDLE ExitedEvent;
	CImageList imaSmall;
	CPoint MousePoint;
	CMenu menu;
	int iCurrIndex;

	CPhoneBookPage(CWnd* pParent = NULL);   // standard constructor

	void InsertPhoneBookHead(char * index,
							 char * name,
							 char * phonenum);
	void InsertPhoneBook(int imageindex,
						 char * index,
						 char * name,
						 char * phonenum);
	void DelPhoneBookList();
	void ShowPhoneBookList(CString RetPhoneBook, int index);
	int GetItemCount();

	void SaveTempFile();
	void WritePhoneBook(CString index, CString num, CString name);

// Dialog Data
	//{{AFX_DATA(CPhoneBookPage)
	enum { IDD = IDD_PROPPAGE_PHONEBOOK };
	CIconButton	m_btnsave;
	CIconButton	m_btnopen;
	CIconButton	m_btnexport;
	CIconButton	m_btnimport;
	CListCtrl	m_pblist;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPhoneBookPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPhoneBookPage)
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnopen();
	afx_msg void OnBtnsave();
	afx_msg void OnBtnexport();
	afx_msg void OnBtnimport();
	afx_msg void OnRclickPhonebook(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnDialnum();
	afx_msg void OnSendsmsto();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	DECLARE_DLGRESIZE_MAP;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PHONEBOOKPAGE_H__1E825262_4C30_4D9B_9B28_2970FE536540__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?