home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch09 / speed / mydlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-17  |  1.2 KB  |  50 lines

  1. // mydlg.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CMyDlg dialog
  6.  
  7. class CMyDlg : public CDialog
  8. {
  9. // Construction
  10. public:
  11.     CMyDlg(CWnd* pParent = NULL);    // standard constructor
  12.  
  13.     //////////////////////
  14.     // MY CODE STARTS HERE
  15.     //////////////////////
  16.  
  17.     // Declare data members that are used as 
  18.     // the Scroll bars variables.
  19.     int m_ScrollPosition; // Current position
  20.     int m_ScrollMin;      // Minimum posistion
  21.     int m_ScrollMax;      // Maximum position
  22.  
  23.      ////////////////////
  24.      // MY CODE ENDS HERE
  25.      ////////////////////
  26.  
  27.  
  28. // Dialog Data
  29.     //{{AFX_DATA(CMyDlg)
  30.     enum { IDD = IDD_DIALOG1 };
  31.         // NOTE: the ClassWizard will add data members here
  32.     //}}AFX_DATA
  33.  
  34. // Implementation
  35. protected:
  36.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  37.  
  38.     // Generated message map functions
  39.     //{{AFX_MSG(CMyDlg)
  40.     virtual BOOL OnInitDialog();
  41.     afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  42.     virtual void OnOK();
  43.     afx_msg void OnEnable();
  44.     afx_msg void OnDisable();
  45.     afx_msg void OnHide();
  46.     afx_msg void OnShow();
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. };
  50.