changed the code to be really sure that exactly one update event is sent when SetValue() is called

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-11-25 14:43:54 +00:00
parent 034e304169
commit 2c62dd25cd
2 changed files with 64 additions and 41 deletions

View File

@@ -247,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;