Re: Creating a simple windows messaging app

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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]

.



Relevant Pages

  • Re: dynamic menus
    ... but they will all have basic machine control ... But can the message map in a view or doc or mainframe be mapped to ... > The menu belongs to the CMainFrame. ... > management and message handlers also belong in CMainFrame. ...
    (microsoft.public.vc.mfc)
  • Re: Order of Message Map Entries - Does It Matter?
    ... >individual message handlers by a handler for a range. ... >message map following the Class Wizard entries. ...
    (microsoft.public.vc.mfc)
  • Re: Order of Message Map Entries - Does It Matter?
    ... my SDI app was working properly until I decided to replace ... >> individual message handlers by a handler for a range. ... >> message map following the Class Wizard entries. ...
    (microsoft.public.vc.mfc)
  • Re: Order of Message Map Entries - Does It Matter?
    ... my SDI app was working properly until I decided to replace ... > individual message handlers by a handler for a range. ... > message map following the Class Wizard entries. ...
    (microsoft.public.vc.mfc)