home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch10 / cal2code / cal2ctl.h < prev   
Encoding:
C/C++ Source or Header  |  1995-11-01  |  1.9 KB  |  71 lines

  1. // Cal2Ctl.h : Declaration of the CCal2Ctrl OLE control class.
  2.  
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CCal2Ctrl : See Cal2Ctl.cpp for implementation.
  5.  
  6. class CCal2Ctrl : public COleControl
  7. {
  8.     DECLARE_DYNCREATE(CCal2Ctrl)
  9.  
  10. // Constructor
  11. public:
  12.     CCal2Ctrl();
  13.  
  14. // Overrides
  15.  
  16.     // Drawing function
  17.     virtual void OnDraw(
  18.                 CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  19.  
  20.     // Persistence
  21.     virtual void DoPropExchange(CPropExchange* pPX);
  22.  
  23.     // Reset control state
  24.     virtual void OnResetState();
  25.  
  26. // Implementation
  27. protected:
  28.     ~CCal2Ctrl();
  29.  
  30.     BEGIN_OLEFACTORY(CCal2Ctrl)        // Class factory and guid
  31.         virtual BOOL VerifyUserLicense();
  32.         virtual BOOL GetLicenseKey(DWORD, BSTR FAR*);
  33.     END_OLEFACTORY(CCal2Ctrl)
  34.  
  35.     DECLARE_OLETYPELIB(CCal2Ctrl)      // GetTypeInfo
  36.     DECLARE_PROPPAGEIDS(CCal2Ctrl)     // Property page IDs
  37.     DECLARE_OLECTLTYPE(CCal2Ctrl)        // Type name and misc status
  38.  
  39. // Message maps
  40.     //{{AFX_MSG(CCal2Ctrl)
  41.         // NOTE - ClassWizard will add and remove member functions here.
  42.         //    DO NOT EDIT what you see in these blocks of generated code !
  43.     //}}AFX_MSG
  44.     DECLARE_MESSAGE_MAP()
  45.  
  46. // Dispatch maps
  47.     //{{AFX_DISPATCH(CCal2Ctrl)
  48.         // NOTE - ClassWizard will add and remove member functions here.
  49.         //    DO NOT EDIT what you see in these blocks of generated code !
  50.     //}}AFX_DISPATCH
  51.     DECLARE_DISPATCH_MAP()
  52.  
  53.     afx_msg void AboutBox();
  54.  
  55. // Event maps
  56.     //{{AFX_EVENT(CCal2Ctrl)
  57.         // NOTE - ClassWizard will add and remove member functions here.
  58.         //    DO NOT EDIT what you see in these blocks of generated code !
  59.     //}}AFX_EVENT
  60.     DECLARE_EVENT_MAP()
  61.  
  62. // Dispatch and event IDs
  63. public:
  64.     enum {
  65.     //{{AFX_DISP_ID(CCal2Ctrl)
  66.         // NOTE: ClassWizard will add and remove enumeration elements here.
  67.         //    DO NOT EDIT what you see in these blocks of generated code !
  68.     //}}AFX_DISP_ID
  69.     };
  70. };
  71.