home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap04 / lst43 / lst43ctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-26  |  1.5 KB  |  67 lines

  1. // Lst43Ctl.h : Declaration of the CLst43Ctrl OLE control class.
  2.  
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CLst43Ctrl : See Lst43Ctl.cpp for implementation.
  5.  
  6. class CLst43Ctrl : public COleControl
  7. {
  8.     DECLARE_DYNCREATE(CLst43Ctrl)
  9.  
  10. // Constructor
  11. public:
  12.     CLst43Ctrl();
  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.     ~CLst43Ctrl();
  29.  
  30.     DECLARE_OLECREATE_EX(CLst43Ctrl)    // Class factory and guid
  31.     DECLARE_OLETYPELIB(CLst43Ctrl)      // GetTypeInfo
  32.     DECLARE_PROPPAGEIDS(CLst43Ctrl)     // Property page IDs
  33.     DECLARE_OLECTLTYPE(CLst43Ctrl)        // Type name and misc status
  34.  
  35. // Message maps
  36.     //{{AFX_MSG(CLst43Ctrl)
  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(CLst43Ctrl)
  44.     afx_msg BSTR GetMachineName();
  45.     //}}AFX_DISPATCH
  46.     DECLARE_DISPATCH_MAP()
  47.  
  48.     afx_msg void AboutBox();
  49.  
  50. // Event maps
  51.     //{{AFX_EVENT(CLst43Ctrl)
  52.     //}}AFX_EVENT
  53.     DECLARE_EVENT_MAP()
  54.  
  55. // Dispatch and event IDs
  56. public:
  57.     enum {
  58.     //{{AFX_DISP_ID(CLst43Ctrl)
  59.     dispidGetMachineName = 1L,
  60.     //}}AFX_DISP_ID
  61.     };
  62.  
  63. private:
  64.     BOOL IsInvokeAllowed(DISPID dispid);
  65.  
  66. };
  67.