home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1998 October / dpcb1098.iso / Business / Maxim / MAX5 / data.z / DTCtrl.h < prev    next >
C/C++ Source or Header  |  1998-05-15  |  1KB  |  53 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // NAME.......: DTCtrl.h                                               
  3. // PURPOSE....: new time windows common control, 
  4. //              need Comctl32.lib and Commctrl.h
  5. //
  6. // WRITTEN....: 96/09/27 by Darko Juvan
  7. // DESCRIPTION: 
  8. //
  9. // This code and information is provided "as is" without warranty of any
  10. // kind, either expressed or implied, including but not limited to the
  11. // implied warranties of merchantability and/or fitness for a particular
  12. // purpose..
  13. //
  14. // Copyright (c) 1998  Multiactive Software Inc.  All Rights Reserved.
  15. //
  16. //////////////////////////////////////////////////////////////////////////////
  17. class CDTCtrl : public CWnd
  18. {
  19. // Construction
  20. public:
  21.     CDTCtrl();
  22.            
  23.     CString GetDate();
  24.     CString GetTime(CTime* pTime = NULL);
  25.     void SetDate(UINT year, UINT month, UINT day);
  26.     void SetTime(UINT hour, UINT min, UINT sec);
  27.  
  28. // Attributes
  29. public:
  30.  
  31. // Operations
  32. public:
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CDTCtrl)
  37.     public:
  38.     virtual BOOL Create(BOOL bDate, CWnd* pParentWnd, UINT nDlgID, UINT nCtrlID); 
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. public:
  43.     virtual ~CDTCtrl();
  44.  
  45.     // Generated message map functions
  46. protected:
  47.     //{{AFX_MSG(CDTCtrl)
  48.         // NOTE - the ClassWizard will add and remove member functions here.
  49.     //}}AFX_MSG
  50.     DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53.