home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / cmnctrls / spinctrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.4 KB  |  61 lines

  1. // SpinCtrl.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CSpinCtrlPage dialog
  6. #ifndef INC_SPINCTRL_H
  7. #define INC_SPINCTRL_H
  8.  
  9. class CSpinCtrlPage : public CPropertyPage
  10. {
  11.     DECLARE_DYNCREATE(CSpinCtrlPage)
  12.  
  13. // Construction
  14. public:
  15.     CSpinCtrlPage();
  16.     ~CSpinCtrlPage();
  17.  
  18. // Dialog Data
  19.     //{{AFX_DATA(CSpinCtrlPage)
  20.     enum { IDD = IDD_SPINCTRL };
  21.     int        m_iAlignment;
  22.     UINT    m_uiRangeFrom;
  23.     int        m_iOrientation;
  24.     UINT    m_uiRangeTo;
  25.     BOOL    m_bWrap;
  26.     //}}AFX_DATA
  27.  
  28.     CSpinButtonCtrl    m_Spin;
  29.     CRect            m_EditRect;
  30.  
  31. // Overrides
  32.     // ClassWizard generate virtual function overrides
  33.     //{{AFX_VIRTUAL(CSpinCtrlPage)
  34.     protected:
  35.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36.     virtual BOOL OnInitDialog();
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. protected:
  41.     void CreateSpinCtrl();
  42.     void ChangeCtrlStyle();
  43.  
  44.     // Generated message map functions
  45.     //{{AFX_MSG(CSpinCtrlPage)
  46.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  47.     afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  48.     afx_msg void OnSelchangeSpinAlignment();
  49.     afx_msg void OnKillfocusSpinFrom();
  50.     afx_msg void OnKillfocusSpinEdit();
  51.     afx_msg void OnSelchangeSpinOrientation();
  52.     afx_msg void OnKillfocusSpinTo();
  53.     afx_msg void OnSpinWrap();
  54.     afx_msg void OnChangeSpinEdit();
  55.     //}}AFX_MSG
  56.     DECLARE_MESSAGE_MAP()
  57.  
  58. };
  59.  
  60. #endif
  61.