git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53547
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ // suppress events sent during control creation: we're called either from
+ // the ctor and then we shouldn't generate any events for compatibility
+ // with the other ports, or from SetWindowStyleFlag() and then we shouldn't
+ // generate the events because our text doesn't really change, the fact
+ // that we (sometimes) need to recreate the control is just an
+ // implementation detail
+ m_updatesCount = -2;
+
if ( !MSWCreateControl(windowClass.wx_str(), msStyle, pos, size, valueWin) )
return false;
if ( !MSWCreateControl(windowClass.wx_str(), msStyle, pos, size, valueWin) )
return false;
#if wxUSE_RICHEDIT
if (IsRich())
{
#if wxUSE_RICHEDIT
if (IsRich())
{