From 6c807c60e3553b05e380309d1e2184a1f9217b8c Mon Sep 17 00:00:00 2001 From: Blake-Madden <66873089+Blake-Madden@users.noreply.github.com> Date: Sun, 4 Aug 2024 14:13:03 -0400 Subject: [PATCH] Remove message pump from callback --- src/ui/controls/formattedtextctrl.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/ui/controls/formattedtextctrl.cpp b/src/ui/controls/formattedtextctrl.cpp index c204e682..875ee7b8 100644 --- a/src/ui/controls/formattedtextctrl.cpp +++ b/src/ui/controls/formattedtextctrl.cpp @@ -1709,19 +1709,6 @@ void FormattedTextCtrl::SetFormattedText(const wchar_t* formattedText) DWORD wxCALLBACK FormattedTextCtrl::EditStreamOutCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG* pcb) { -#if wxUSE_THREADS - wxMutexGuiLeaveOrEnter(); -#endif // wxUSE_THREADS - MSG msg; - while (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) - { - if (msg.message != WM_QUIT) - { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); - } - } - // Address of our string var is in psEntry std::string* psEntry = reinterpret_cast(dwCookie);