#pragma interface "textctrl.h"
#endif
-// can we use RICHEDIT class for wxTextCtrl implementation?
-#if defined(__WIN95__) && !defined(__TWIN32__) && !defined(__WXWINE__)
- #define wxUSE_RICHEDIT 1
-#else
- #define wxUSE_RICHEDIT 0
-#endif
-
class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase
{
public:
// considering all its contents as a single strings) and (x, y) coordinates
// which represent column and line.
virtual long XYToPosition(long x, long y) const;
- virtual void PositionToXY(long pos, long *x, long *y) const;
+ virtual bool PositionToXY(long pos, long *x, long *y) const;
virtual void ShowPosition(long pos);
void SetRichEdit(bool isRich) { m_isRich = isRich; }
#endif // wxUSE_RICHEDIT
- virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
- WXUINT message, WXWPARAM wParam,
- WXLPARAM lParam);
-
virtual void AdoptAttributesFromHWND();
virtual void SetupColours();
// limit is big enough)
void AdjustSpaceLimit();
- virtual wxSize DoGetBestSize();
+ virtual wxSize DoGetBestSize() const;
private:
DECLARE_EVENT_TABLE()