home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / VFP50 / API / SAMPLES / FOXTLIB / FOXTLI~1.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-01  |  2.1 KB  |  75 lines

  1. // FoxtlibCtl.h : Declaration of the CFoxtlibCtrl OLE control class.
  2.  
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CFoxtlibCtrl : See FoxtlibCtl.cpp for implementation.
  5.  
  6. class CFoxtlibCtrl : public COleControl
  7. {
  8.     DECLARE_DYNCREATE(CFoxtlibCtrl)
  9.  
  10. // Constructor
  11. public:
  12.     CFoxtlibCtrl();
  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.     ~CFoxtlibCtrl();
  29.  
  30.     DECLARE_OLECREATE_EX(CFoxtlibCtrl)    // Class factory and guid
  31.     DECLARE_OLETYPELIB(CFoxtlibCtrl)      // GetTypeInfo
  32.     DECLARE_PROPPAGEIDS(CFoxtlibCtrl)     // Property page IDs
  33.     DECLARE_OLECTLTYPE(CFoxtlibCtrl)        // Type name and misc status
  34.  
  35. // Message maps
  36.     //{{AFX_MSG(CFoxtlibCtrl)
  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(CFoxtlibCtrl)
  44.     afx_msg long TLLoadTypeLib(LPCTSTR szFilename);
  45.     afx_msg long TLRelease(long pTypeInfo);
  46.     afx_msg long TLGetTypeInfoCount(long pTypeInfo);
  47.     afx_msg long TLGetTypeAttr(long pTypeInfo, LPCTSTR szArrName);
  48.     afx_msg long TLGetTypeInfo(long pTypeInfo, long nIndex);
  49.     afx_msg long TLGetDocumentation(long pTypeInfo, LPCTSTR szArrName, long nIndex, long nKind);
  50.     afx_msg long TIGetNames(long pTypeInfo, LPCTSTR szArrName, long nMemId);
  51.     afx_msg long TIGetFuncDesc(long pTypeInfo, LPCTSTR szArrName, long nIndex, LPCTSTR szParmsArr);
  52.     //}}AFX_DISPATCH
  53.     DECLARE_DISPATCH_MAP()
  54.  
  55. // Event maps
  56.     //{{AFX_EVENT(CFoxtlibCtrl)
  57.     //}}AFX_EVENT
  58.     DECLARE_EVENT_MAP()
  59.  
  60. // Dispatch and event IDs
  61. public:
  62.     enum {
  63.     //{{AFX_DISP_ID(CFoxtlibCtrl)
  64.     dispidTLLoadTypeLib = 1L,
  65.     dispidTLRelease = 2L,
  66.     dispidTLGetTypeInfoCount = 3L,
  67.     dispidTLGetTypeAttr = 4L,
  68.     dispidTLGetTypeInfo = 5L,
  69.     dispidTLGetDocumentation = 6L,
  70.     dispidTIGetNames = 7L,
  71.     dispidTIGetFuncDesc = 8L,
  72.     //}}AFX_DISP_ID
  73.     };
  74. };
  75.