Re: Posting a message from a worker thread
- From: "TGD" <dropbin@xxxxxxxxxxx>
- Date: Thu, 20 Oct 2005 17:04:48 -0400
"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.
.
- References:
- Posting a message from a worker thread
- From: TGD
- Re: Posting a message from a worker thread
- From: David Lowndes
- Posting a message from a worker thread
- Prev by Date: Re: Posting a message from a worker thread
- Next by Date: RE: How to display a PrintPreview window not the called view?
- Previous by thread: Re: Posting a message from a worker thread
- Next by thread: RE: How to display a PrintPreview window not the called view?
- Index(es):
Relevant Pages
|