home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c12 / useclock / clock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  2.1 KB  |  70 lines

  1. #if !defined(AFX_CLOCK_H__07B7DC49_57ED_11D0_98AB_444553540000__INCLUDED_)
  2. #define AFX_CLOCK_H__07B7DC49_57ED_11D0_98AB_444553540000__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CClock wrapper class
  14.  
  15. class CClock : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CClock)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0x6eb850a3, 0x263c, 0x11cf, { 0xa1, 0x51, 0x0, 0xaa, 0x0, 0x37, 0x4d, 0xd8 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.     short GetAlarmHour();
  43.     void SetAlarmHour(short);
  44.     short GetAlarmMinute();
  45.     void SetAlarmMinute(short);
  46.     short GetAlarmType();
  47.     void SetAlarmType(short);
  48.     CString GetAlarmSound();
  49.     void SetAlarmSound(LPCTSTR);
  50.     CString GetAlarmCommand();
  51.     void SetAlarmCommand(LPCTSTR);
  52.     BOOL GetAlarmSet();
  53.     void SetAlarmSet(BOOL);
  54.     BOOL Get_AlarmSet();
  55.     void Set_AlarmSet(BOOL);
  56.     OLE_COLOR GetBackColor();
  57.     void SetBackColor(OLE_COLOR);
  58.  
  59. // Operations
  60. public:
  61.     void SetAlarmTime(short hour, short nNewValue);
  62.     void TestAlarm();
  63.     void AboutBox();
  64. };
  65.  
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  68.  
  69. #endif // !defined(AFX_CLOCK_H__07B7DC49_57ED_11D0_98AB_444553540000__INCLUDED_)
  70.