X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52f2f7b2c15e10eec1607bee683e575e898bf0d8..e951b8e4e6c07fe5d5200b8cbf6148e7317aa0e5:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index 316248cf09..1fb28361f6 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -148,8 +148,7 @@ public: virtual void Command(wxCommandEvent& event); virtual bool MSWCommand(WXUINT param, WXWORD id); - virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, - WXUINT message, WXWPARAM wParam, WXLPARAM lParam); + virtual WXHBRUSH MSWControlColor(WXHDC hDC); #if wxUSE_RICHEDIT virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); @@ -248,9 +247,9 @@ protected: int m_verRichEdit; #endif // wxUSE_RICHEDIT - // if true, SendUpdateEvent() will eat the next event (see comments in the - // code as to why this is needed) - bool m_suppressNextUpdate; + // number of EN_UPDATE events sent by Windows when we change the controls + // text ourselves: we want this to be exactly 1 + int m_updatesCount; virtual wxVisualAttributes GetDefaultAttributes() const; @@ -261,6 +260,12 @@ private: wxMenu* m_privateContextMenu; bool m_isNativeCaretShown; + + // this is an optimization: instead of checking all the time whether we + // need to move the caret to the end of text (before appending to the + // control), we remember whether it is already at the end of text in this + // variable + bool m_isCaretAtEnd; }; #endif