Consider the following:
Multiple threads can post UDM_MY_MESSAGE to my handler thread. Is there a way to obtain information on the originator of the message? Or am I going to need to embed a threadId or some such identifier in the information passed through in the message parameters?
Code:
BEGIN_MESSAGE_MAP(CMyHandlerThread, CWinThread)
ON_THREAD_MESSAGE(UDM_MY_MESSAGE, OnMyMessage)
END_MESSAGE_MAP()
void CMyHandlerThread::OnMyMessage(WPARAM fizz, LPARAM buzz)
{
// do stuff
}
Multiple threads can post UDM_MY_MESSAGE to my handler thread. Is there a way to obtain information on the originator of the message? Or am I going to need to embed a threadId or some such identifier in the information passed through in the message parameters?