Skip to content

Commit

Permalink
Remove message pump from callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Aug 4, 2024
1 parent 45ec31c commit 6c807c6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/ui/controls/formattedtextctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string*>(dwCookie);

Expand Down

0 comments on commit 6c807c6

Please sign in to comment.