www.pudn.com > wi.zip > TmpOcxCtl.h, change:2003-06-11,size:2198b


#if !defined(AFX_TMPOCXCTL_H__0B0F09A8_B89D_4602_92C1_AD6B53AA1A0C__INCLUDED_) 
#define AFX_TMPOCXCTL_H__0B0F09A8_B89D_4602_92C1_AD6B53AA1A0C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
// TmpOcxCtl.h : Declaration of the CTmpOcxCtrl ActiveX Control class. 
 
///////////////////////////////////////////////////////////////////////////// 
// CTmpOcxCtrl : See TmpOcxCtl.cpp for implementation. 
 
class CTmpOcxCtrl : public COleControl 
{ 
	DECLARE_DYNCREATE(CTmpOcxCtrl) 
 
// Constructor 
public: 
	CTmpOcxCtrl(); 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CTmpOcxCtrl) 
	public: 
	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid); 
	virtual void DoPropExchange(CPropExchange* pPX); 
	virtual void OnResetState(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	~CTmpOcxCtrl(); 
 
	DECLARE_OLECREATE_EX(CTmpOcxCtrl)    // Class factory and guid 
	DECLARE_OLETYPELIB(CTmpOcxCtrl)      // GetTypeInfo 
	DECLARE_PROPPAGEIDS(CTmpOcxCtrl)     // Property page IDs 
	DECLARE_OLECTLTYPE(CTmpOcxCtrl)		// Type name and misc status 
 
// Message maps 
	//{{AFX_MSG(CTmpOcxCtrl) 
		// NOTE - ClassWizard will add and remove member functions here. 
		//    DO NOT EDIT what you see in these blocks of generated code ! 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
// Dispatch maps 
	//{{AFX_DISPATCH(CTmpOcxCtrl) 
	afx_msg BSTR GetMsgContext(); 
	afx_msg void SetMsgContext(LPCTSTR lpszNewValue); 
	afx_msg void ShowMessage(); 
	//}}AFX_DISPATCH 
	DECLARE_DISPATCH_MAP() 
 
	afx_msg void AboutBox(); 
 
// Event maps 
	//{{AFX_EVENT(CTmpOcxCtrl) 
	void FireOnMsgChange() 
		{FireEvent(eventidOnMsgChange,EVENT_PARAM(VTS_NONE));} 
	//}}AFX_EVENT 
	DECLARE_EVENT_MAP() 
 
// Dispatch and event IDs 
public: 
	enum { 
	//{{AFX_DISP_ID(CTmpOcxCtrl) 
	dispidMsgContext = 1L, 
	dispidShowMessage = 2L, 
	eventidOnMsgChange = 1L, 
	//}}AFX_DISP_ID 
	}; 
private: 
	CString m_MsgContext; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_TMPOCXCTL_H__0B0F09A8_B89D_4602_92C1_AD6B53AA1A0C__INCLUDED)