home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch10 / calencod / calenctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-01  |  1.8 KB  |  67 lines

  1. // CalenCtl.h : Declaration of the CCalenCtrl OLE control class.
  2.  
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CCalenCtrl : See CalenCtl.cpp for implementation.
  5.  
  6. class CCalenCtrl : public COleControl
  7. {
  8.     DECLARE_DYNCREATE(CCalenCtrl)
  9.  
  10. // Constructor
  11. public:
  12.     CCalenCtrl();
  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.     ~CCalenCtrl();
  29.  
  30.     DECLARE_OLECREATE_EX(CCalenCtrl)    // Class factory and guid
  31.     DECLARE_OLETYPELIB(CCalenCtrl)      // GetTypeInfo
  32.     DECLARE_PROPPAGEIDS(CCalenCtrl)     // Property page IDs
  33.     DECLARE_OLECTLTYPE(CCalenCtrl)        // Type name and misc status
  34.  
  35. // Message maps
  36.     //{{AFX_MSG(CCalenCtrl)
  37.         // NOTE - ClassWizard will add and remove member functions here.
  38.         //    DO NOT EDIT what you see in these blocks of generated code !
  39.     //}}AFX_MSG
  40.     DECLARE_MESSAGE_MAP()
  41.  
  42. // Dispatch maps
  43.     //{{AFX_DISPATCH(CCalenCtrl)
  44.         // NOTE - ClassWizard will add and remove member functions here.
  45.         //    DO NOT EDIT what you see in these blocks of generated code !
  46.     //}}AFX_DISPATCH
  47.     DECLARE_DISPATCH_MAP()
  48.  
  49.     afx_msg void AboutBox();
  50.  
  51. // Event maps
  52.     //{{AFX_EVENT(CCalenCtrl)
  53.         // NOTE - ClassWizard will add and remove member functions here.
  54.         //    DO NOT EDIT what you see in these blocks of generated code !
  55.     //}}AFX_EVENT
  56.     DECLARE_EVENT_MAP()
  57.  
  58. // Dispatch and event IDs
  59. public:
  60.     enum {
  61.     //{{AFX_DISP_ID(CCalenCtrl)
  62.         // NOTE: ClassWizard will add and remove enumeration elements here.
  63.         //    DO NOT EDIT what you see in these blocks of generated code !
  64.     //}}AFX_DISP_ID
  65.     };
  66. };
  67.