#ifndef _WX_TEXTCTRL_H_
#define _WX_TEXTCTRL_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "textctrl.h"
-#endif
-
class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase
{
public:
// intercept WM_GETDLGCODE
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+ // return true if this control has a user-set limit on amount of text (i.e.
+ // the limit is due to a previous call to SetMaxLength() and not built in)
+ bool HasSpaceLimit(unsigned int *len) const;
+
// call this to increase the size limit (will do nothing if the current
// limit is big enough)
//