/*=========================================================================== * * TEXTBOX.H - 2 April 1999, Dave Humphrey (uesp@m0use.net) * * Header file for the implementation of the class CTextBox, a custom * text box control class based off of CEdit with additional routines, * parameters, etc... * *=========================================================================*/ #ifndef __TEXTBOX_H #define __TEXTBOX_H #if _MSC_VER > 1000 #pragma once #endif /*=========================================================================== * * Class CTextBox Definition * * Custom textbox class bases off of CEdit. Contains additional features * such as routines for converting to/from boolean, integer, and float values * etc... * *=========================================================================*/ class CTextBox : public CEdit { /*---------- Begin Public Class Methods --------------------------------*/ public: /* Class Constructor and Destructor */ CTextBox(); virtual ~CTextBox(); /* Returns the text box string as a numerical value */ boolean GetBoolean (void); float GetFloat (void); int GetInt (void); long GetLong (void); /* Sets the text box string to a numerical value */ void SetTextBoolean (const boolean Value); void SetTextFloat (const float Value); void SetTextInt (const int Value); void SetTextLong (const long Value); /* ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTextBox) //}}AFX_VIRTUAL /* Generated message map functions */ protected: //{{AFX_MSG(CTextBox) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; /*=========================================================================== * End of Class CTextBox Definition *=========================================================================*/ //{{AFX_INSERT_LOCATION}} //}}AFX #endif /*=========================================================================== * End of File TEXTBOX.H *=========================================================================*/