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);
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;
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