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

📄 smscontrol.h

📁 关于手机短信控件的使用例子程序
💻 H
字号:
#if !defined(AFX_SMSCONTROL_H__C5C7D602_3E0B_11D8_95E3_0050BAD1872C__INCLUDED_)
#define AFX_SMSCONTROL_H__C5C7D602_3E0B_11D8_95E3_0050BAD1872C__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.

/////////////////////////////////////////////////////////////////////////////
// CSmscontrol wrapper class

class CSmscontrol : public CWnd
{
protected:
	DECLARE_DYNCREATE(CSmscontrol)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0xc5939825, 0x869a, 0x4174, { 0xa6, 0xe8, 0x3a, 0xa5, 0xc2, 0x7f, 0x97, 0x3e } };
		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:
	short GetNBaudRate();
	void SetNBaudRate(short);
	short GetNSizeBit();
	void SetNSizeBit(short);
	short GetParity();
	void SetParity(short);
	short GetNStopBit();
	void SetNStopBit(short);
	short GetNCommPort();
	void SetNCommPort(short);
	CString GetStrMSCA();
	void SetStrMSCA(LPCTSTR);

// Operations
public:
	short SendMSG(LPCTSTR phonenumber, LPCTSTR msg);
	short OpenComm();
	short ReadMsg(VARIANT* pvariantSMCA, VARIANT* pvariantOA, VARIANT* pvariantMSG, VARIANT* pvariantTIME);
	short ReadMsgForVB(BSTR* pbstrMSCA, BSTR* pbstrOA, BSTR* pbstrMSG, BSTR* pbstrTIMESTAMP);
	void AboutBox();
};

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

#endif // !defined(AFX_SMSCONTROL_H__C5C7D602_3E0B_11D8_95E3_0050BAD1872C__INCLUDED_)

⌨️ 快捷键说明

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