Re: Creating a simple windows messaging app
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Thu, 10 Jul 2008 20:42:27 -0400
"Nick Schultz" <nick.schultz@xxxxxxxx> wrote in message news:Oahod9t4IHA.5112@xxxxxxxxxxxxxxxxxxxxxxx
Since I just need a small dialog window , I'm using a dialog based mfc. should I put the wm_canlib and appregister messages in the dialog's message map? The handlers for these messages will then spawn off worker threads to do what needs to get done.
Yes. Use ON_MESSAGE to add a custom message to the message map.
and for the appthreads, I'll extend a CWinThread that has an member that I'll create that extends CWin. I will then put the the messages that i specified above for appThread in the CWin derived class?
is this correct?
Yes, same concept.
--
Scott McPhillips [VC++ MVP]
.
- References:
- Creating a simple windows messaging app
- From: Nick Schultz
- Re: Creating a simple windows messaging app
- From: Scott McPhillips [MVP]
- Re: Creating a simple windows messaging app
- From: Nick Schultz
- Creating a simple windows messaging app
- Prev by Date: Re: Creating a simple windows messaging app
- Next by Date: Re: Visual Studio 2008 Annoyance
- Previous by thread: Re: Creating a simple windows messaging app
- Next by thread: Re: Creating a simple windows messaging app
- Index(es):
Relevant Pages
|