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

  1. #ifndef __PVBUTTON_H__
  2. #define __PVBUTTON_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. // CPVButton wrapper class
  16.  
  17. class CPVButton : public CWnd
  18. {
  19. protected:
  20.     DECLARE_DYNCREATE(CPVButton)
  21. public:
  22.     CLSID const& GetClsid()
  23.     {
  24.         static CLSID const clsid
  25.             = { 0x1bb282c4, 0x2cb9, 0x11d0, { 0xad, 0xa6, 0x0, 0x40, 0x5, 0x20, 0x79, 0x9c } };
  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.     CString GetCaption();
  45.     void SetCaption(LPCTSTR);
  46.     COleFont GetFont();
  47.     void SetFont(LPDISPATCH);
  48.     BOOL GetEnabled();
  49.     void SetEnabled(BOOL);
  50.     OLE_HANDLE GetHWnd();
  51.     void SetHWnd(OLE_HANDLE);
  52.     short GetPicture();
  53.     void SetPicture(short);
  54.     CString Get_Caption();
  55.     void Set_Caption(LPCTSTR);
  56.     short GetSpecialEffect();
  57.     void SetSpecialEffect(short);
  58.     BOOL GetDefaultButton();
  59.     void SetDefaultButton(BOOL);
  60.     BOOL GetRepeatButton();
  61.     void SetRepeatButton(BOOL);
  62.     unsigned long GetColorCodeColor();
  63.     void SetColorCodeColor(unsigned long);
  64.     CPicture GetCustomPicture();
  65.     void SetCustomPicture(LPDISPATCH);
  66.     OLE_COLOR GetBackColor();
  67.     void SetBackColor(OLE_COLOR);
  68.     OLE_COLOR GetForeColor();
  69.     void SetForeColor(OLE_COLOR);
  70.     unsigned long GetLightShadow();
  71.     void SetLightShadow(unsigned long);
  72.     unsigned long GetDarkShadow();
  73.     void SetDarkShadow(unsigned long);
  74.     unsigned long GetLightHighlight();
  75.     void SetLightHighlight(unsigned long);
  76.     unsigned long GetDarkHighlight();
  77.     void SetDarkHighlight(unsigned long);
  78.  
  79. // Operations
  80. public:
  81.     void ResetColorScheme();
  82.     void SetRedraw(BOOL bRedraw);
  83.     void AboutBox();
  84. };
  85.  
  86. #endif // __PVBUTTON_H__
  87.