I am trying to create sort of a logging system throughout my program, where from the threads I am able to add text to a Rich edit Box in the GUI. I am not supper familiar with this stack, but from reading realized you couldn't access functions and would have to use control messages to do this.
I was trying something like this:
CString ExampleMessage("hi");
HWND hEdit = GetDlgItem (m_pMainWnd->GetSafeHwnd(),IDC_RICHEDIT22);
int ndx = GetWindowTextLength (hEdit);
SetFocus (hEdit);
SendMessage (hEdit, EM_SETSEL, (WPARAM)ndx, (LPARAM)(LPCTSTR)ExampleMessage );
However no message seems to appear. Is there a way to get CRichEditCtrl and its underlying functions in threads? I'm assuming not.
Thanks!