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

  1. // Dialogs.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CAnimalDlg dialog
  6. class CAnimalDlg : public CDialog
  7. {
  8. // Construction
  9. public:
  10.     CAnimalDlg(CWnd* pParent = NULL);   // standard constructor
  11.  
  12. // Dialog Data
  13.     //{{AFX_DATA(CAnimalDlg)
  14.     enum { IDD = IDD_ANIMAL_ENTRY };
  15.     CListBox    m_classNames;
  16.     CString    m_animal;
  17.     CString    m_type;
  18.     UINT    m_weight;
  19.     CString    m_class;
  20.     //}}AFX_DATA
  21.  
  22. // Overrides
  23.     // ClassWizard generated virtual function overrides
  24.     //{{AFX_VIRTUAL(CAnimalDlg)
  25.     protected:
  26.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  27.     //}}AFX_VIRTUAL
  28.  
  29. // Implementation
  30. protected:
  31.  
  32.     // Generated message map functions
  33.     //{{AFX_MSG(CAnimalDlg)
  34.     virtual BOOL OnInitDialog();
  35.     //}}AFX_MSG
  36.     DECLARE_MESSAGE_MAP()
  37. };
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CModifyDlg dialog
  41. class CModifyDlg : public CDialog
  42. {
  43. // Construction
  44. public:
  45.     CModifyDlg(CWnd* pParent = NULL);   // standard constructor
  46.  
  47. // Dialog Data
  48.     //{{AFX_DATA(CModifyDlg)
  49.     enum { IDD = IDD_ANIMAL_MODIFY };
  50.     CString    m_animal;
  51.     int        m_weight;
  52.     //}}AFX_DATA
  53.  
  54.  
  55. // Overrides
  56.     // ClassWizard generated virtual function overrides
  57.     //{{AFX_VIRTUAL(CModifyDlg)
  58.     protected:
  59.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  60.     //}}AFX_VIRTUAL
  61.  
  62. // Implementation
  63. protected:
  64.  
  65.     // Generated message map functions
  66.     //{{AFX_MSG(CModifyDlg)
  67.         // NOTE: the ClassWizard will add member functions here
  68.     //}}AFX_MSG
  69.     DECLARE_MESSAGE_MAP()
  70. };
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73. // CModifyTypeDlg dialog
  74. class CModifyTypeDlg : public CDialog
  75. {
  76. // Construction
  77. public:
  78.     CModifyTypeDlg(CWnd* pParent = NULL);   // standard constructor
  79.  
  80. // Dialog Data
  81.     //{{AFX_DATA(CModifyTypeDlg)
  82.     enum { IDD = IDD_TYPE_MODIFY };
  83.     CString    m_type;
  84.     //}}AFX_DATA
  85.  
  86.  
  87. // Overrides
  88.     // ClassWizard generated virtual function overrides
  89.     //{{AFX_VIRTUAL(CModifyTypeDlg)
  90.     protected:
  91.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  92.     //}}AFX_VIRTUAL
  93.  
  94. // Implementation
  95. protected:
  96.  
  97.     // Generated message map functions
  98.     //{{AFX_MSG(CModifyTypeDlg)
  99.     afx_msg void OnChangeType();
  100.     virtual BOOL OnInitDialog();
  101.     //}}AFX_MSG
  102.     DECLARE_MESSAGE_MAP()
  103. };
  104.