I'm writing a GUI application for Windows using MFC and C++.
So I need to send messages to my MAIN thread from my worker thread to tell it to update my GUI. However I'm not sure how to send a message to the actual MAIN thread rather than a Window. As it is I can see it is in the MAIN thread when it receives the message but I am not sure if this is guaranteed or just luck.
In worker:
PostMessage( *myTestToolDlg, WM_YOU_HAVE_DATA,UPDATE_GUI, 0 );
In application window:
LRESULT CTestToolDlg::OnData(WPARAM wp, LPARAM )
Does this somehow mean that?