home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.2 / marquee / samples / MFC / TICKER / TK.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-23  |  2.8 KB  |  105 lines

  1. #ifndef __TK_H__
  2. #define __TK_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. class COleFont;
  12. class CPicture;
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CTk wrapper class
  16.  
  17. class CTk : public CWnd
  18. {
  19. protected:
  20.     DECLARE_DYNCREATE(CTk)
  21. public:
  22.     CLSID const& GetClsid()
  23.     {
  24.         static CLSID const clsid
  25.             = { 0xedf439c3, 0x99e5, 0x11cf, { 0xaf, 0xf3, 0x0, 0x40, 0x5, 0x10, 0x2, 0x0 } };
  26.         return clsid;
  27.     }
  28.     virtual BOOL Create(LPCTSTR lpszClassName,
  29.         LPCTSTR lpszWindowName, DWORD dwStyle,
  30.         const RECT& rect,
  31.         CWnd* pParentWnd, UINT nID,
  32.         CCreateContext* pContext = NULL)
  33.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  34.  
  35.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  36.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  37.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  38.         BSTR bstrLicKey = NULL)
  39.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  40.         pPersist, bStorage, bstrLicKey); }
  41.  
  42. // Attributes
  43. public:
  44.     OLE_COLOR GetBackColor();
  45.     void SetBackColor(OLE_COLOR);
  46.     OLE_COLOR GetForeColor();
  47.     void SetForeColor(OLE_COLOR);
  48.     CString GetText();
  49.     void SetText(LPCTSTR);
  50.     COleFont GetFont();
  51.     void SetFont(LPDISPATCH);
  52.     long GetDirection();
  53.     void SetDirection(long);
  54.     short GetTickIncrement();
  55.     void SetTickIncrement(short);
  56.     long GetFrame();
  57.     void SetFrame(long);
  58.     short GetTickTime();
  59.     void SetTickTime(short);
  60.     CString GetNextDisplayString();
  61.     void SetNextDisplayString(LPCTSTR);
  62.     CPicture GetPicture1();
  63.     void SetPicture1(LPDISPATCH);
  64.     CPicture GetPicture2();
  65.     void SetPicture2(LPDISPATCH);
  66.     CPicture GetPicture3();
  67.     void SetPicture3(LPDISPATCH);
  68.     long GetJustification();
  69.     void SetJustification(long);
  70.     COleFont GetHeading1();
  71.     void SetHeading1(LPDISPATCH);
  72.     COleFont GetHeading2();
  73.     void SetHeading2(LPDISPATCH);
  74.     COleFont GetHeading3();
  75.     void SetHeading3(LPDISPATCH);
  76.     CPicture GetPicture4();
  77.     void SetPicture4(LPDISPATCH);
  78.     CPicture GetPicture5();
  79.     void SetPicture5(LPDISPATCH);
  80.     CPicture GetPicture6();
  81.     void SetPicture6(LPDISPATCH);
  82.     CPicture GetPicture7();
  83.     void SetPicture7(LPDISPATCH);
  84.     CPicture GetPicture8();
  85.     void SetPicture8(LPDISPATCH);
  86.     CPicture GetPicture9();
  87.     void SetPicture9(LPDISPATCH);
  88.     OLE_HANDLE GetHWnd();
  89.     void SetHWnd(OLE_HANDLE);
  90.     BOOL GetRedraw();
  91.     void SetRedraw(BOOL);
  92.     COleFont GetHeading4();
  93.     void SetHeading4(LPDISPATCH);
  94.     COleFont GetHeading5();
  95.     void SetHeading5(LPDISPATCH);
  96.     BOOL GetFreezeMarquee();
  97.     void SetFreezeMarquee(BOOL);
  98.  
  99. // Operations
  100. public:
  101.     void AboutBox();
  102. };
  103.  
  104. #endif // __TK_H__
  105.