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 / slidctrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.6 KB  |  71 lines

  1. // SlidCtrl.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CSliderCtrlPage dialog
  6. #ifndef INC_SLIDCTRL_H
  7. #define INC_SLIDCTRL_H
  8.  
  9. class CSliderCtrlPage : public CPropertyPage
  10. {
  11.     DECLARE_DYNCREATE(CSliderCtrlPage)
  12.  
  13. // Construction
  14. public:
  15.     CSliderCtrlPage();
  16.     ~CSliderCtrlPage();
  17.  
  18. // Dialog Data
  19.     //{{AFX_DATA(CSliderCtrlPage)
  20.     enum { IDD = IDD_SLIDERCTRL };
  21.     CStatic    m_Notifications;
  22.     BOOL    m_bAutoticks;
  23.     BOOL    m_bEnablesel;
  24.     BOOL    m_bFixed;
  25.     UINT    m_uiLine;
  26.     BOOL    m_bNothumb;
  27.     BOOL    m_bNoticks;
  28.     int        m_iOrientation;
  29.     UINT    m_uiPage;
  30.     int        m_iTickpos;
  31.     UINT    m_uiRangeFrom;
  32.     UINT    m_uiRangeTo;
  33.     UINT    m_uiSelRangeFrom;
  34.     UINT    m_uiSelRangeTo;
  35.     UINT    m_uiTickFreq;
  36.     //}}AFX_DATA
  37.  
  38.     CSliderCtrl    m_Slider;
  39.  
  40. // Overrides
  41.     // ClassWizard generate virtual function overrides
  42.     //{{AFX_VIRTUAL(CSliderCtrlPage)
  43.     protected:
  44.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  45.     virtual BOOL OnInitDialog();
  46.     //}}AFX_VIRTUAL
  47.  
  48. // Implementation
  49. protected:
  50.     void ChangeCtrlStyle(long lStyle,BOOL bSetBit=TRUE);
  51.  
  52.     // Generated message map functions
  53.     //{{AFX_MSG(CSliderCtrlPage)
  54.     afx_msg void OnTickfreq();
  55.     afx_msg void OnLine();
  56.     afx_msg void OnPage();
  57.     afx_msg void OnRangefrom();
  58.     afx_msg void OnRangeto();
  59.     afx_msg void OnSelrangefrom();
  60.     afx_msg void OnSelrangeto();
  61.     afx_msg void OnMore();
  62. //    afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  63.     //}}AFX_MSG
  64.     DECLARE_MESSAGE_MAP()
  65. private:
  66.     void SetSliderCtrlStyle();
  67.     void resetSliderRange();
  68. };
  69.  
  70. #endif
  71.