www.pudn.com > VCBOOKSOURCES.zip > AXCTRLCTL.H, change:1998-03-06,size:2023b


// AXCtrlCtl.h : Declaration of the CAXCtrlCtrl ActiveX Control class. 
 
#if !defined(AFX_AXCTRLCTL_H__CC31D294_B1B1_11D1_80FC_00C0F6A83B7F__INCLUDED_) 
#define AFX_AXCTRLCTL_H__CC31D294_B1B1_11D1_80FC_00C0F6A83B7F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CAXCtrlCtrl : See AXCtrlCtl.cpp for implementation. 
 
class CAXCtrlCtrl : public COleControl 
{ 
   DECLARE_DYNCREATE(CAXCtrlCtrl) 
 
public: 
   CBitmap *m_CurrentBitmap, m_BitmapNight, m_BitmapDay; 
 
// Constructor 
public: 
   CAXCtrlCtrl(); 
 
// Overrides 
   // ClassWizard generated virtual function overrides 
   //{{AFX_VIRTUAL(CAXCtrlCtrl) 
   public: 
   virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid); 
   virtual void DoPropExchange(CPropExchange* pPX); 
   virtual void OnResetState(); 
   //}}AFX_VIRTUAL 
 
// Implementation 
protected: 
   ~CAXCtrlCtrl(); 
 
   DECLARE_OLECREATE_EX(CAXCtrlCtrl)    // Class factory and guid 
   DECLARE_OLETYPELIB(CAXCtrlCtrl)      // GetTypeInfo 
   DECLARE_PROPPAGEIDS(CAXCtrlCtrl)     // Property page IDs 
   DECLARE_OLECTLTYPE(CAXCtrlCtrl)     // Type name and misc status 
 
// Message maps 
   //{{AFX_MSG(CAXCtrlCtrl) 
   afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
   //}}AFX_MSG 
   DECLARE_MESSAGE_MAP() 
 
// Dispatch maps 
   //{{AFX_DISPATCH(CAXCtrlCtrl) 
   BOOL m_showFrame; 
   afx_msg void OnShowFrameChanged(); 
   //}}AFX_DISPATCH 
   DECLARE_DISPATCH_MAP() 
 
   afx_msg void AboutBox(); 
 
// Event maps 
   //{{AFX_EVENT(CAXCtrlCtrl) 
   //}}AFX_EVENT 
   DECLARE_EVENT_MAP() 
 
// Dispatch and event IDs 
public: 
   enum { 
   //{{AFX_DISP_ID(CAXCtrlCtrl) 
   dispidShowFrame = 1L, 
   //}}AFX_DISP_ID 
   }; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_AXCTRLCTL_H__CC31D294_B1B1_11D1_80FC_00C0F6A83B7F__INCLUDED)