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

  1. #ifndef __PVDATE_H__
  2. #define __PVDATE_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. // CPVDate wrapper class
  15.  
  16. class CPVDate : public CWnd
  17. {
  18. protected:
  19.     DECLARE_DYNCREATE(CPVDate)
  20. public:
  21.     CLSID const& GetClsid()
  22.     {
  23.         static CLSID const clsid
  24.             = { 0xc0000090, 0xffff, 0x1100, { 0x80, 0x1, 0x0, 0x0, 0x0, 0x0, 0x1, 0x2 } };
  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 GetEnableCalendarControl();
  44.     void SetEnableCalendarControl(BOOL);
  45.     short GetDateFormat();
  46.     void SetDateFormat(short);
  47.     CString GetSeparator();
  48.     void SetSeparator(LPCTSTR);
  49.     BOOL GetShowCentury();
  50.     void SetShowCentury(BOOL);
  51.     BOOL GetEnabled();
  52.     void SetEnabled(BOOL);
  53.     OLE_HANDLE GetHWnd();
  54.     void SetHWnd(OLE_HANDLE);
  55.     BOOL GetIgnoreKeyboard();
  56.     void SetIgnoreKeyboard(BOOL);
  57.     short GetAppearance();
  58.     void SetAppearance(short);
  59.     short GetBorderStyle();
  60.     void SetBorderStyle(short);
  61.     short GetDisplayFormat();
  62.     void SetDisplayFormat(short);
  63.     BOOL GetMonthLeadingZero();
  64.     void SetMonthLeadingZero(BOOL);
  65.     BOOL GetDayLeadingZero();
  66.     void SetDayLeadingZero(BOOL);
  67.     BOOL GetUseDefaultFormat();
  68.     void SetUseDefaultFormat(BOOL);
  69.     DATE GetValue();
  70.     void SetValue(DATE);
  71.     DATE Get_Value();
  72.     void Set_Value(DATE);
  73.     COleFont GetFont();
  74.     void SetFont(LPDISPATCH);
  75.     OLE_COLOR GetBackColor();
  76.     void SetBackColor(OLE_COLOR);
  77.     OLE_COLOR GetForeColor();
  78.     void SetForeColor(OLE_COLOR);
  79.  
  80. // Operations
  81. public:
  82.     CString GetDateString();
  83.     void SetMonthLiteral(short index, LPCTSTR literal);
  84.     void SetDOWLiteral(LPCTSTR dowString);
  85.     void SetNull();
  86.     BOOL IsNull();
  87.     void AboutBox();
  88. };
  89.  
  90. #endif // __PVDATE_H__
  91.