The easiest way to create an ATL project is to use the ATL COM AppWizard. You can then add objects or controls to your project using the ATL Object Wizard. Go through the ATL Tutorial to insert a control and add custom properties and events.
This article: