X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fa80851004670b11f3bb60df2f08fab1512c461..ebef1625fa59c555e45d2aa278de0ff5674d6142:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 3cb69ee267..f2c219fba4 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -13,10 +13,6 @@ // declarations // ============================================================================ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "textctrl.h" -#endif - // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- @@ -358,9 +354,12 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, // only give the error msg once if the DLL can't be loaded static bool s_errorGiven = false; // MT ok as only used by GUI - wxLogError(_("Impossible to create a rich edit control, using simple text control instead. Please reinstall riched32.dll")); + if ( !s_errorGiven ) + { + wxLogError(_("Impossible to create a rich edit control, using simple text control instead. Please reinstall riched32.dll")); - s_errorGiven = true; + s_errorGiven = true; + } m_verRichEdit = 0; } @@ -1773,6 +1772,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) // Insert tab since calling the default Windows handler // doesn't seem to do it WriteText(wxT("\t")); + return; } break; }