www.pudn.com > agsm2-1.2_src.zip > ScSmsPage.h


#if !defined(AFX_SCSMSPAGE_H__3A1CFCA6_970E_4BF9_9486_AB7CFB6AD83B__INCLUDED_) 
#define AFX_SCSMSPAGE_H__3A1CFCA6_970E_4BF9_9486_AB7CFB6AD83B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "ScListCtrl.h" 
#include "ScPropertyPage.h" 
// ScSmsPage.h : header file 
// 
///////////////////////////////////////////////////////////////////////////// 
// CScSmsPage dialog 
 
class CScSmsPage : public CScPropertyPage 
{ 
	DECLARE_DYNCREATE(CScSmsPage) 
 
// Construction 
public: 
	void Paste(); 
	BOOL CanPaste(); 
	virtual void  WriteRecord(int n=-1); 
	void EditRecord(); 
	virtual void ReadRecord(int n = -1); 
	CScSmsPage(); 
	~CScSmsPage(); 
 
// Dialog Data 
	//{{AFX_DATA(CScSmsPage) 
	enum { IDD = IDD_PAGE_SMS }; 
	CScListCtrl	m_SmsListCtrl; 
	//}}AFX_DATA 
	ULONG m_NumOfRecs; 
	ULONG m_RecordLen; 
	ULONG m_FileSize; 
	BYTE m_pResData[512]; 
 
// Overrides 
	// ClassWizard generate virtual function overrides 
	//{{AFX_VIRTUAL(CScSmsPage) 
	public: 
	virtual BOOL OnApply(); 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
	virtual CScListCtrl* GetListCtrl(); 
 
// Implementation 
protected: 
	BOOL RowCanPaste(char *cols[]); 
	void WriteRecordN(int n,BOOL newRecord); 
	void ReadRecordN(int n,BOOL newRecord); 
	void SelectCurFile(); 
	// Generated message map functions 
	//{{AFX_MSG(CScSmsPage) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 
	afx_msg void OnDblclkListSms(NMHDR* pNMHDR, LRESULT* pResult); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SCSMSPAGE_H__3A1CFCA6_970E_4BF9_9486_AB7CFB6AD83B__INCLUDED_)