home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch14 / phn / phnview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-21  |  1.3 KB  |  63 lines

  1. // phnview.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CPhnView form view
  6.  
  7. #ifndef __AFXEXT_H__
  8. #include <afxext.h>
  9. #endif
  10.  
  11. class CPhnView : public CFormView
  12. {
  13.     DECLARE_DYNCREATE(CPhnView)
  14. protected:
  15.     CPhnView();            // protected constructor used by dynamic creation
  16.  
  17.  
  18.     //////////////////////
  19.     // MY CODE STARTS HERE
  20.     //////////////////////
  21.  
  22.     virtual void OnInitialUpdate();
  23.  
  24.     POSITION m_position;  // Current position in DOC list.
  25.     CObList* m_pList;     // Pointer to the DOC list.
  26.  
  27.     ////////////////////
  28.     // MY CODE ENDS HERE
  29.     ////////////////////
  30.  
  31.  
  32. // Form Data
  33. public:
  34.     //{{AFX_DATA(CPhnView)
  35.     enum { IDD = IDD_DIALOG1 };
  36.     CString    m_Name;
  37.     CString    m_Phone;
  38.     //}}AFX_DATA
  39.  
  40. // Attributes
  41. public:
  42.  
  43. // Operations
  44. public:
  45.  
  46. // Implementation
  47. protected:
  48.     virtual ~CPhnView();
  49.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  50.     // Generated message map functions
  51.     //{{AFX_MSG(CPhnView)
  52.     afx_msg void OnChangeName();
  53.     afx_msg void OnChangePhone();
  54.     afx_msg void OnPreviousButton();
  55.     afx_msg void OnNextButton();
  56.     afx_msg void OnAddButton();
  57.     afx_msg void OnDeleteButton();
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63.