+ // replace the contents of the selection or of the entire control with the
+ // given text
+ void DoWriteText(const wxString& text, bool selectionOnly = TRUE);
+
+ // set the selection possibly without scrolling the caret into view
+ void DoSetSelection(long from, long to, bool scrollCaret = TRUE);
+
+ // return true if there is a non empty selection in the control
+ bool HasSelection() const;
+
+ // get the length of the line containing the character at the given
+ // position
+ long GetLengthOfLineContainingPos(long pos) const;
+
+ // send TEXT_UPDATED event, return TRUE if it was handled, FALSE otherwise
+ bool SendUpdateEvent();
+
+ // override some base class virtuals
+ virtual bool MSWShouldPreProcessMessage(WXMSG* pMsg);