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

📄 _sms.h

📁 用VC++写的发送短信的例子
💻 H
字号:
#if !defined(AFX__SMS_H__77D1AC6E_B09A_421E_A6BA_16B5AEB92380__INCLUDED_)
#define AFX__SMS_H__77D1AC6E_B09A_421E_A6BA_16B5AEB92380__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


// Dispatch interfaces referenced by this interface
class COleFont;

/////////////////////////////////////////////////////////////////////////////
// C_SMS wrapper class

class C_SMS : public CWnd
{
protected:
	DECLARE_DYNCREATE(C_SMS)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0x99a26ba1, 0xc8a9, 0x48b8, { 0xa5, 0x7c, 0x5a, 0x79, 0xe0, 0x2b, 0x24, 0x31 } };
		return clsid;
	}
	virtual BOOL Create(LPCTSTR lpszClassName,
		LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect,
		CWnd* pParentWnd, UINT nID,
		CCreateContext* pContext = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }

    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect, CWnd* pParentWnd, UINT nID,
		CFile* pPersist = NULL, BOOL bStorage = FALSE,
		BSTR bstrLicKey = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
		pPersist, bStorage, bstrLicKey); }

// Attributes
public:

// Operations
public:
	long GetBackColor();
	void SetBackColor(long nNewValue);
	long GetForeColor();
	void SetForeColor(long nNewValue);
	BOOL GetEnabled();
	void SetEnabled(BOOL bNewValue);
	COleFont GetFont();
	void SetRefFont(LPDISPATCH newValue);
	short GetBackStyle();
	void SetBackStyle(short nNewValue);
	short GetBorderStyle();
	void SetBorderStyle(short nNewValue);
	void Refresh();
	short GetCommPort();
	void SetCommPort(short nNewValue);
	long GetHandshaking();
	void SetHandshaking(long nNewValue);
	short GetInBufferCount();
	void SetInBufferCount(short nNewValue);
	short GetInBufferSize();
	void SetInBufferSize(short nNewValue);
	CString GetInputInfo();
	short GetInputLen();
	void SetInputLen(short nNewValue);
	void SetOutput(const VARIANT& newValue);
	short GetRThreshold();
	void SetRThreshold(short nNewValue);
	CString GetSettings();
	void SetSettings(LPCTSTR lpszNewValue);
	short GetDelayTime();
	void SetDelayTime(short nNewValue);
	CString GetLastUpdate();
	BOOL GetIsOpen();
	void SetIsOpen(BOOL bNewValue);
	short GetOutBufferSize();
	void SetOutBufferSize(short nNewValue);
	BOOL SendSMS(LPCTSTR sDestGSM, LPCTSTR sMsgText);
	VARIANT Read_SMS(short ReadMode, short DeleteInfo);
	VARIANT Read_OneSMS(LPCTSTR SMS_index);
	BOOL GetDTREnable();
	void SetDTREnable(BOOL bNewValue);
	BOOL GetEOFEnable();
	void SetEOFEnable(BOOL bNewValue);
	long GetInputMode();
	void SetInputMode(long nNewValue);
	BOOL GetNullDiscard();
	void SetNullDiscard(BOOL bNewValue);
	CString GetParityReplace();
	void SetParityReplace(LPCTSTR lpszNewValue);
	BOOL GetRTSEnable();
	void SetRTSEnable(BOOL bNewValue);
	short GetSThreshold();
	void SetSThreshold(short nNewValue);
	short EncodeSMS(LPCTSTR sDestGSM, LPCTSTR sMsgText, BSTR* sSMS);
	BOOL InitComm();
	VARIANT EndComm();
	CString GetCsCA();
	BOOL SetCSCA(LPCTSTR CSCA);
	CString DelSMS(short Index);
	CString Check(LPCTSTR sCheck);
	VARIANT PhoneBookStorage();
	CString PhoneBookList();
	CString GetSerialNumber();
	void SetSerialNumber(LPCTSTR lpszNewValue);
	CString GetProductID();
	void SetProductID(LPCTSTR lpszNewValue);
	BOOL GetSendReport();
	void SetSendReport(BOOL bNewValue);
	CString About();
	BOOL GetAutoAck();
	void SetAutoAck(BOOL bNewValue);
	CString GetNewSMS();
	void SetNewSMS(LPCTSTR lpszNewValue);
	BOOL SmsSaveInSIM();
	BOOL SMSnotSaveInSIM();
	BOOL GetSMSSaveState();
	void SetSMSSaveState(BOOL bNewValue);
	BOOL GetRegistered();
	void SetRegistered(BOOL bNewValue);
	VARIANT GetLastError();
	BOOL SendingBusyState();
	short GetRetryTimes();
	void SetRetryTimes(short nNewValue);
	CString CancelSend();
	CString GetLastSentSMS();
	void SetLastSentSMS(LPCTSTR lpszNewValue);
	long NotSendSMSCount();
	CString GetModemInfo();
	void SetModemInfo(LPCTSTR lpszNewValue);
	BOOL SendSMSWithoutRet(LPCTSTR sDestGSM, LPCTSTR sMsgText, long ID);
	BOOL GetFlashSMS();
	void SetFlashSMS(BOOL bNewValue);
	CString GetSMSStorage();
	void SetSMSStorage(LPCTSTR lpszNewValue);
	VARIANT GetCommEvent();
	void SetCommEvent(const VARIANT& newValue);
};

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

#endif // !defined(AFX__SMS_H__77D1AC6E_B09A_421E_A6BA_16B5AEB92380__INCLUDED_)

⌨️ 快捷键说明

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