#if !defined(AFX_POINTSLIDER_H__85139495_A6E7_41E1_B083_335CADF31F84__INCLUDED_) #define AFX_POINTSLIDER_H__85139495_A6E7_41E1_B083_335CADF31F84__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // PointSlider.h : header file // #pragma warning(disable:4786) // don't warn about browse name overflow. #include using namespace std; ///////////////////////////////////////////////////////////////////////////// // CPointSlider window class CPointSlider : public CStatic { // Construction public: CPointSlider(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPointSlider) public: virtual BOOL PreTranslateMessage(MSG* pMsg); //}}AFX_VIRTUAL // Implementation public: void DeletePoint(int nPoint); int GetNumPoint(void) { return m_lstPoint.size(); } void SetPointSize(int nPointSize) { m_nPointSize = nPointSize; } void Clear(void) { m_lstPoint.clear(); } void SetBoundary(int nMin, int nMax); void SetPoint(int nPoint); int GetHeight(void); int GetWidth(void); virtual ~CPointSlider(); // Generated message map functions protected: int m_nSelectPoint; int m_nPointSize; list m_lstPoint; int m_nBoundaryMax; int m_nBoundaryMin; //{{AFX_MSG(CPointSlider) afx_msg void OnPaint(); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_POINTSLIDER_H__85139495_A6E7_41E1_B083_335CADF31F84__INCLUDED_)