⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smspiritdlg.h

📁 用VC6++对串口编程的实现,主要对SMS的实现,可以模拟发短信,收短信,不过要相应的MODON
💻 H
字号:
// SMSpiritDlg.h : header file
//

#if !defined(AFX_SMSPIRITDLG_H__645D2C25_1A5D_43F8_B8B5_02ADA948C1C9__INCLUDED_)
#define AFX_SMSPIRITDLG_H__645D2C25_1A5D_43F8_B8B5_02ADA948C1C9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSMSpiritDlg dialog

class CSerialPort;
class CSMS;


class CSMSpiritDlg : public CDialog
{
// Construction
public:
	CSMSpiritDlg(CWnd* pParent = NULL);	// standard constructor
	~CSMSpiritDlg();


	CSerialPort *m_pPort;
	CSMS		*m_pSms;

	void FillAddressBook();
	void FillInbox();
	void FillOutbox();


// Dialog Data
	//{{AFX_DATA(CSMSpiritDlg)
	enum { IDD = IDD_SMSPIRIT_DIALOG };
	CListCtrl	m_OutBox;
	CListCtrl	m_InBox;
	CListCtrl	m_AddressBook;
	CString	m_strMessage;
	CString	m_strReceiver;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSMSpiritDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSend();
	afx_msg void OnButtonRefresh();
	afx_msg void OnKeydownInbox(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKeydownOutbox(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkAddressBook(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG

	afx_msg LRESULT ReceivedNewMessage( WPARAM, LPARAM);

	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SMSPIRITDLG_H__645D2C25_1A5D_43F8_B8B5_02ADA948C1C9__INCLUDED_)

⌨️ 快捷键说明

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