X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/129223d68ed841d3c3265fe31c70877e0bc685ac..307b0b97ee4c88f7fab8b48e463da54b72b41367:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index 07fa37fe8b..283e86b826 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -90,6 +90,7 @@ public: // apply text attribute to the range of text (only works with richedit // controls) virtual bool SetStyle(long start, long end, const wxTextAttr& style); + virtual bool SetDefaultStyle(const wxTextAttr& style); #endif // wxUSE_RICHEDIT // translate between the position (which is just an index in the text ctrl @@ -128,7 +129,6 @@ public: // Implementation from now on // -------------------------- - virtual void SetFocus(); virtual void SetWindowStyleFlag(long style); virtual void Command(wxCommandEvent& event); @@ -207,6 +207,9 @@ protected: // 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); virtual wxSize DoGetBestSize() const; @@ -218,6 +221,10 @@ protected: // 0, it also gives the version of the RICHEDIT control being used (1, 2 or // 3 so far) int m_verRichEdit; + + // if TRUE, SendUpdateEvent() will eat the next event (see comments in the + // code as to why this is needed) + bool m_suppressNextUpdate; #endif // wxUSE_RICHEDIT private: