Re: Posting a message from a worker thread




"David Lowndes" <davidl@xxxxxxxxxxxxxxx> wrote in message
news:gevfl1p0qof1kebmbvsohl11i86tocoebc@xxxxxxxxxx
> >When I try to post a message from the thread to the view like so:
>>
>>::PostMessage( AfxGetApp()->m_m_pMainWnd->m_hWnd, WM_USER_TUDV, 0, 0);
>>
>>the message never gets there.
>
> Probably because you're posting the message to the main frame window.
> Have a look at the CFrameWnd::GetActiveView documentation.
>
> Dave
> --
> MVP VC++ FAQ: http://www.mvps.org/vcfaq


Thanks.

That was exactly what I needed to know.






.



Relevant Pages