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

  1. // UseClockView.h : interface of the CUseClockView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "clock.h"
  6. //}}AFX_INCLUDES
  7.  
  8. #if !defined(AFX_USECLOCKVIEW_H__07B7DC42_57ED_11D0_98AB_444553540000__INCLUDED_)
  9. #define AFX_USECLOCKVIEW_H__07B7DC42_57ED_11D0_98AB_444553540000__INCLUDED_
  10.  
  11. #if _MSC_VER >= 1000
  12. #pragma once
  13. #endif // _MSC_VER >= 1000
  14.  
  15. class CUseClockView : public CFormView
  16. {
  17. protected: // create from serialization only
  18.     CUseClockView();
  19.     DECLARE_DYNCREATE(CUseClockView)
  20.  
  21. public:
  22.     //{{AFX_DATA(CUseClockView)
  23.     enum { IDD = IDD_USECLOCK_FORM };
  24.     CClock    m_ClockControl;
  25.     //}}AFX_DATA
  26.  
  27. // Attributes
  28. public:
  29.     CUseClockDoc* GetDocument();
  30.  
  31. // Operations
  32. public:
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CUseClockView)
  37.     public:
  38.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  39.     virtual void OnInitialUpdate();
  40.     protected:
  41.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  42.     //}}AFX_VIRTUAL
  43.  
  44. // Implementation
  45. public:
  46.     virtual ~CUseClockView();
  47. #ifdef _DEBUG
  48.     virtual void AssertValid() const;
  49.     virtual void Dump(CDumpContext& dc) const;
  50. #endif
  51.  
  52. protected:
  53.  
  54. // Generated message map functions
  55. protected:
  56.     //{{AFX_MSG(CUseClockView)
  57.     afx_msg void OnClockToggleAlarm();
  58.     afx_msg void OnAlarmEventClockCtrl();
  59.     afx_msg void OnClockSetAlarmHour();
  60.     afx_msg void OnClockSetAlarmMinute();
  61.     afx_msg void OnClockSetBackColor();
  62.     afx_msg void OnClockAboutBoxMethod();
  63.     afx_msg void OnClockAlarmTimeMethod();
  64.     afx_msg void OnClockTestAlarmMethod();
  65.     afx_msg void OnClockSetAlarmCommand();
  66.     afx_msg void OnClockShowProperties();
  67.     DECLARE_EVENTSINK_MAP()
  68.     //}}AFX_MSG
  69.     DECLARE_MESSAGE_MAP()
  70. };
  71.  
  72. #ifndef _DEBUG  // debug version in UseClockView.cpp
  73. inline CUseClockDoc* CUseClockView::GetDocument()
  74.    { return (CUseClockDoc*)m_pDocument; }
  75. #endif
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.  
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  81.  
  82. #endif // !defined(AFX_USECLOCKVIEW_H__07B7DC42_57ED_11D0_98AB_444553540000__INCLUDED_)
  83.