Re: MFC and threads
- From: David Wilkinson <no-reply@xxxxxxxxxxxx>
- Date: Wed, 04 Apr 2007 12:43:24 -0500
Doug Harrison [MVP] wrote:
I'd submit this is even simpler:
UINT CMyThread::Query()
{
return (UINT) target->SendMessage(UWM_QUERY_WHATEVER);
}
ON_[REGISTERED_]MESSAGE(UWM_QUERY_WHATEVER, OnQueryWhatever)
LRESULT CMyWindow::OnQueryWhatever(WPARAM, LPARAM)
{
return dlg.DoModal();
}
Doug:
Yes, this is how I would do it also. IMHO, prejudice against SendMessage() often leads to unnecessarily complex solutions.
David Wilkinson
.
- Follow-Ups:
- Re: MFC and threads
- From: Doug Harrison [MVP]
- Re: MFC and threads
- From: Joseph M . Newcomer
- Re: MFC and threads
- References:
- MFC and threads
- From: one-trick-pony
- Re: MFC and threads
- From: AliR \(VC++ MVP\)
- Re: MFC and threads
- From: Joseph M . Newcomer
- Re: MFC and threads
- From: one-trick-pony
- Re: MFC and threads
- From: Joseph M . Newcomer
- Re: MFC and threads
- From: Doug Harrison [MVP]
- MFC and threads
- Prev by Date: Re: Generating Code...
- Next by Date: Re: physical storage on disk
- Previous by thread: Re: MFC and threads
- Next by thread: Re: MFC and threads
- Index(es):
Relevant Pages
|