www.pudn.com > SendMsgOCX.rar > SendMsgOCXCtl.h


#if !defined(AFX_SENDMSGOCXCTL_H__62D761A9_C27C_47F6_8DA4_186E42C36DEC__INCLUDED_) 
#define AFX_SENDMSGOCXCTL_H__62D761A9_C27C_47F6_8DA4_186E42C36DEC__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
// SendMsgOCXCtl.h : Declaration of the CSendMsgOCXCtrl ActiveX Control class. 
 
///////////////////////////////////////////////////////////////////////////// 
// CSendMsgOCXCtrl : See SendMsgOCXCtl.cpp for implementation. 
 
#include "WShortMessageLink.h"//ÍôµÄÍ·Îļþ 
 
#define COMM_NOTIFY_MESSAGE (WM_USER + 1)    
 
class CSendMsgOCXCtrl : public COleControl 
{ 
	DECLARE_DYNCREATE(CSendMsgOCXCtrl) 
 
// Constructor 
public: 
	CSendMsgOCXCtrl(); 
	CWShortMessageLink m_smsLink; 
	//friend CWSMInterface; 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSendMsgOCXCtrl) 
	public: 
	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid); 
	virtual void DoPropExchange(CPropExchange* pPX); 
	virtual void OnResetState(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	~CSendMsgOCXCtrl(); 
 
	DECLARE_OLECREATE_EX(CSendMsgOCXCtrl)    // Class factory and guid 
	DECLARE_OLETYPELIB(CSendMsgOCXCtrl)      // GetTypeInfo 
	DECLARE_PROPPAGEIDS(CSendMsgOCXCtrl)     // Property page IDs 
	DECLARE_OLECTLTYPE(CSendMsgOCXCtrl)		// Type name and misc status 
 
// Message maps 
	//{{AFX_MSG(CSendMsgOCXCtrl) 
	afx_msg void OnTimer(UINT nIDEvent); 
	//}}AFX_MSG 
	afx_msg LRESULT OnCommNotifyMsg(LPARAM wParam, LPARAM lParam); 
	DECLARE_MESSAGE_MAP() 
 
// Dispatch maps 
	//{{AFX_DISPATCH(CSendMsgOCXCtrl) 
	afx_msg short OpenCom(short portNo); 
	afx_msg short SendMessage(LPCTSTR lpcszPhoneNumber, short msgType, BSTR FAR* lpData, long dwDataSize); 
	afx_msg short SetSMSCenter(LPCTSTR lpcszPhoneNumber); 
	//}}AFX_DISPATCH 
	DECLARE_DISPATCH_MAP() 
 
	afx_msg void AboutBox(); 
 
// Event maps 
	//{{AFX_EVENT(CSendMsgOCXCtrl) 
	void FireMsgAnswer(long MsgNo, LPCTSTR AnswerNo) 
		{FireEvent(eventidMsgAnswer,EVENT_PARAM(VTS_I4  VTS_BSTR), MsgNo, AnswerNo);} 
	void FireMsgAnswer1(long MsgNo, LPCTSTR AnswerNo) 
		{FireEvent(eventidMsgAnswer1,EVENT_PARAM(VTS_I4  VTS_BSTR), MsgNo, AnswerNo);} 
	//}}AFX_EVENT 
	DECLARE_EVENT_MAP() 
 
// Dispatch and event IDs 
public: 
	enum { 
	//{{AFX_DISP_ID(CSendMsgOCXCtrl) 
	dispidOpenCom = 1L, 
	dispidSendMessage = 2L, 
	dispidSetSMSCenter = 3L, 
	eventidMsgAnswer = 1L, 
	eventidMsgAnswer1 = 2L, 
	//}}AFX_DISP_ID 
	}; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SENDMSGOCXCTL_H__62D761A9_C27C_47F6_8DA4_186E42C36DEC__INCLUDED)