/***********************************************************************/ /* Copyright (C) 2002 Definitive Solutions, Inc. All Rights Reserved. */ /* THIS COMPUTER PROGRAM IS PROPRIETARY AND CONFIDENTIAL TO DEFINITIVE */ /* SOLUTIONS, INC. AND ITS LICENSORS AND CONTAINS TRADE SECRETS OF */ /* DEFINITIVE SOLUTIONS, INC. THAT ARE PROVIDED PURSUANT TO A WRITTEN */ /* AGREEMENT CONTAINING RESTRICTIONS ON USE AND DISCLOSURE. ANY USE, */ /* REPRODUCTION, OR TRANSFER EXCEPT AS PROVIDED IN SUCH AGREEMENT */ /* IS STRICTLY PROHIBITED. */ /***********************************************************************/ #if !defined(AFX_MYSPINCTRL_H__C5507734_6640_11D5_89F8_00B0D0529ED2__INCLUDED_) #define AFX_MYSPINCTRL_H__C5507734_6640_11D5_89F8_00B0D0529ED2__INCLUDED_ #pragma once ///////////////////////////////////////////////////////////////////////////// // This class allows you to spin above 32767. Only works for auto-buddied. ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // MySpinCtrl window // Declare depending on whether this file is in an EXE or a DLL. class #ifdef _WINDLL AFX_EXT_CLASS #endif MySpinCtrl : public CSpinButtonCtrl { // Construction. public: MySpinCtrl(); virtual ~MySpinCtrl(); // Operations. public: // Use these methods. void SetRangeDWord(int nLo, int nHi); void SetPosDWord(int nPos); void SetIncrement(double dInc); void SetDigitsAfterDecimal(int nDigitsAfterDecimal); int GetPosDWord() const; // Do NOT use these. (Deliberatly method-hiding.) int SetPos(int nPos) { _ASSERTE(! "Do NOT use this method!"); return 0;} int GetPos() const { _ASSERTE(! "Do NOT use this method!"); return 0;} //void SetRange(int nLower, int nUpper) { _ASSERTE(! "Do NOT use this method!"); } void SetRange32(int nLower, int nUpper) { _ASSERTE(! "Do NOT use this method!"); } DWORD GetRange() const { _ASSERTE(! "Do NOT use this method!"); return 0;} void GetRange(int &lower, int& upper) const { _ASSERTE(! "Do NOT use this method!"); } void GetRange32(int &lower, int& upper) const { _ASSERTE(! "Do NOT use this method!"); } //{{AFX_VIRTUAL(MySpinCtrl) protected: virtual void PreSubclassWindow(); //}}AFX_VIRTUAL // Implementation. protected: //{{AFX_MSG(MySpinCtrl) afx_msg void OnDeltapos(NMHDR* pNMHDR, LRESULT* pResult); //}}AFX_MSG DECLARE_MESSAGE_MAP() // Data. private: int m_nLo; // Lowest value. int m_nHi; // Highest value. double m_dInc; // Increment value. int m_nDigitsAfterDecimal; // Controls display. }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MYSPINCTRL_H__C5507734_6640_11D5_89F8_00B0D0529ED2__INCLUDED_)