home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.1 / PVPROG~1.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  2.1 KB  |  76 lines

  1. #ifndef __PVPROGRESSBAR_H__
  2. #define __PVPROGRESSBAR_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.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CPVProgressBar wrapper class
  15.  
  16. class CPVProgressBar : public CWnd
  17. {
  18. protected:
  19.     DECLARE_DYNCREATE(CPVProgressBar)
  20. public:
  21.     CLSID const& GetClsid()
  22.     {
  23.         static CLSID const clsid
  24.             = { 0xb283e20c, 0x2cb3, 0x11d0, { 0xad, 0xa6, 0x0, 0x40, 0x5, 0x20, 0x79, 0x9c } };
  25.         return clsid;
  26.     }
  27.     virtual BOOL Create(LPCTSTR lpszClassName,
  28.         LPCTSTR lpszWindowName, DWORD dwStyle,
  29.         const RECT& rect,
  30.         CWnd* pParentWnd, UINT nID,
  31.         CCreateContext* pContext = NULL)
  32.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  33.  
  34.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  35.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  36.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  37.         BSTR bstrLicKey = NULL)
  38.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  39.         pPersist, bStorage, bstrLicKey); }
  40.  
  41. // Attributes
  42. public:
  43.     BOOL GetEnabled();
  44.     void SetEnabled(BOOL);
  45.     COleFont GetFont();
  46.     void SetFont(LPDISPATCH);
  47.     OLE_HANDLE GetHWnd();
  48.     void SetHWnd(OLE_HANDLE);
  49.     BOOL GetShowTickMarks();
  50.     void SetShowTickMarks(BOOL);
  51.     BOOL GetShowNumbers();
  52.     void SetShowNumbers(BOOL);
  53.     BOOL GetShowPercentComplete();
  54.     void SetShowPercentComplete(BOOL);
  55.     long GetLimit();
  56.     void SetLimit(long);
  57.     long GetValue();
  58.     void SetValue(long);
  59.     unsigned long GetFillColor();
  60.     void SetFillColor(unsigned long);
  61.     OLE_COLOR GetBackColor();
  62.     void SetBackColor(OLE_COLOR);
  63.     OLE_COLOR GetForeColor();
  64.     void SetForeColor(OLE_COLOR);
  65.     short GetAppearance();
  66.     void SetAppearance(short);
  67.     short GetBorderStyle();
  68.     void SetBorderStyle(short);
  69.  
  70. // Operations
  71. public:
  72.     void AboutBox();
  73. };
  74.  
  75. #endif // __PVPROGRESSBAR_H__
  76.