home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / circ1 / circ1ctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.2 KB  |  77 lines

  1. // circ1ctl.h : Declaration of the CCirc1Ctrl OLE control class.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CCirc1Ctrl : See circ1ctl.cpp for implementation.
  15.  
  16. class CCirc1Ctrl : public COleControl
  17. {
  18.     DECLARE_DYNCREATE(CCirc1Ctrl)
  19.  
  20. // Constructor
  21. public:
  22.     CCirc1Ctrl();
  23.  
  24. // Overrides
  25.  
  26.     // Drawing function
  27.     virtual void OnDraw(
  28.                 CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  29.  
  30.     // Persistence
  31.     virtual void DoPropExchange(CPropExchange* pPX);
  32.  
  33.     // Reset control state
  34.     virtual void OnResetState();
  35.  
  36. // Implementation
  37. protected:
  38.     ~CCirc1Ctrl();
  39.  
  40.     DECLARE_OLECREATE_EX(CCirc1Ctrl)    // Class factory and guid
  41.     DECLARE_OLETYPELIB(CCirc1Ctrl)      // GetTypeInfo
  42.     DECLARE_PROPPAGEIDS(CCirc1Ctrl)     // Property page IDs
  43.     DECLARE_OLECTLTYPE(CCirc1Ctrl)      // Type name and misc status
  44.  
  45. // Message maps
  46.     //{{AFX_MSG(CCirc1Ctrl)
  47.         // NOTE - ClassWizard will add and remove member functions here.
  48.         //    DO NOT EDIT what you see in these blocks of generated code !
  49.     //}}AFX_MSG
  50.     DECLARE_MESSAGE_MAP()
  51.  
  52. // Dispatch maps
  53.     //{{AFX_DISPATCH(CCirc1Ctrl)
  54.         // NOTE - ClassWizard will add and remove member functions here.
  55.         //    DO NOT EDIT what you see in these blocks of generated code !
  56.     //}}AFX_DISPATCH
  57.     DECLARE_DISPATCH_MAP()
  58.  
  59.     afx_msg void AboutBox();
  60.  
  61. // Event maps
  62.     //{{AFX_EVENT(CCirc1Ctrl)
  63.         // NOTE - ClassWizard will add and remove member functions here.
  64.         //    DO NOT EDIT what you see in these blocks of generated code !
  65.     //}}AFX_EVENT
  66.     DECLARE_EVENT_MAP()
  67.  
  68. // Dispatch and event IDs
  69. public:
  70.     enum {
  71.     //{{AFX_DISP_ID(CCirc1Ctrl)
  72.         // NOTE: ClassWizard will add and remove enumeration elements here.
  73.         //    DO NOT EDIT what you see in these blocks of generated code !
  74.     //}}AFX_DISP_ID
  75.     };
  76. };
  77.