home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c07 / tmpgraph / dialogs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.2 KB  |  53 lines

  1. // Dialogs.h : header file
  2. //
  3.  
  4. #define MY_TEMP_MSG "temperature message"
  5. #define ML_APPLY 1
  6. #define ML_CANCEL 2
  7.  
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CTemperatureDlg dialog
  10.  
  11. class CTemperatureDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15.     CTemperatureDlg(CWnd * pWnd, CWnd* pParent = NULL);
  16.  
  17. // Dialog Data
  18.     //{{AFX_DATA(CTemperatureDlg)
  19.     enum { IDD = IDD_TEMPERATURE };
  20.     CSpinButtonCtrl    m_temp_spinner;
  21.     CSpinButtonCtrl    m_day_spinner;
  22.     int        m_temperature;
  23.     int        m_day;
  24.     //}}AFX_DATA
  25.  
  26.     int m_MaxDays;
  27.  
  28. protected:
  29.     CWnd * m_pWnd;
  30.     UINT m_UserMsg;
  31.  
  32. // Overrides
  33.     // ClassWizard generated virtual function overrides
  34.     //{{AFX_VIRTUAL(CTemperatureDlg)
  35.     protected:
  36.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  37.     virtual void PostNcDestroy();
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. protected:
  42.  
  43.     // Generated message map functions
  44.     //{{AFX_MSG(CTemperatureDlg)
  45.     virtual BOOL OnInitDialog();
  46.     afx_msg void OnApply();
  47.     virtual void OnCancel();
  48.     afx_msg void OnDeltaposDaySpinner(NMHDR* pNMHDR, LRESULT* pResult);
  49.     afx_msg void OnChangeTemperature();
  50.     //}}AFX_MSG
  51.     DECLARE_MESSAGE_MAP()
  52. };
  53.