I want to add a window to an ALT project so I can trap the window messages and do some processing.

Using Visual Studio, do I just add an ATL Control to the project

And if so, then what How should I instantiate it

Re: Visual C++ General Adding Window to ATL project


Add a class derived from CWindowImpl. Read the (extensive) documentation about CWindowImpl, "ATL Window Classes", etc. to learn how to use the object.