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

  1. #ifndef __PVTIME_H__
  2. #define __PVTIME_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. // CPVTime wrapper class
  15.  
  16. class CPVTime : public CWnd
  17. {
  18. protected:
  19.     DECLARE_DYNCREATE(CPVTime)
  20. public:
  21.     CLSID const& GetClsid()
  22.     {
  23.         static CLSID const clsid
  24.             = { 0x8f25c903, 0x8346, 0x11cf, { 0xaa, 0xcd, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0 } };
  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.     short GetAppearance();
  44.     void SetAppearance(short);
  45.     short GetBorderStyle();
  46.     void SetBorderStyle(short);
  47.     BOOL GetEnabled();
  48.     void SetEnabled(BOOL);
  49.     COleFont GetFont();
  50.     void SetFont(LPDISPATCH);
  51.     OLE_HANDLE GetHWnd();
  52.     void SetHWnd(OLE_HANDLE);
  53.     short GetDisplayStyle();
  54.     void SetDisplayStyle(short);
  55.     BOOL GetShowSeconds();
  56.     void SetShowSeconds(BOOL);
  57.     BOOL GetNoHideSel();
  58.     void SetNoHideSel(BOOL);
  59.     BOOL GetReadOnly();
  60.     void SetReadOnly(BOOL);
  61.     short GetHour();
  62.     void SetHour(short);
  63.     short GetMinute();
  64.     void SetMinute(short);
  65.     short GetSecond();
  66.     void SetSecond(short);
  67.     CString GetTime();
  68.     void SetTime(LPCTSTR);
  69.     BOOL GetUseDefaultFormat();
  70.     void SetUseDefaultFormat(BOOL);
  71.     CString GetSeparatorCharacter();
  72.     void SetSeparatorCharacter(LPCTSTR);
  73.     BOOL GetLeadZero();
  74.     void SetLeadZero(BOOL);
  75.     BOOL GetTwentyFourHourClock();
  76.     void SetTwentyFourHourClock(BOOL);
  77.     CString GetAMString();
  78.     void SetAMString(LPCTSTR);
  79.     CString GetPMString();
  80.     void SetPMString(LPCTSTR);
  81.     OLE_COLOR GetForeColor();
  82.     void SetForeColor(OLE_COLOR);
  83.     OLE_COLOR GetBackColor();
  84.     void SetBackColor(OLE_COLOR);
  85.  
  86. // Operations
  87. public:
  88.     void StartClock();
  89.     void StopClock();
  90.     void AboutBox();
  91. };
  92.  
  93. #endif // __PVTIME_H__
  94.