Creating Custom ActiveX Controls in Visual C++
An ActiveX is class, is a library, is a COM object further more is a concept itself.
ActiveX controls are pieces of code compiled and linked that could live in a dll or by itself in an ocx file.
The ActiveX must be loaded by other applications like a web browser or you can drag and drop it in your application. To test an ActiveX you can use ActiveX control test container.
Creating the ActiveX:
Let’s start building an ActiveX and will discus more at the right time.
First click New in the File Menu and choose MFC ActiveX ControlWizard type. Name it EvolActiveX. Click OK.

Select Help Files to be generated. You don’t want runtime license.

In the 2nd step you will uncheck <> because you will don’t need this to complete this mini-tutorial. When creating this control you can here subclassing window classes (the common controls). The “Advanced” button lead you to “Advanced ActiveX features”. This properties will add some extra feature to our code.

By clicking finish you will be brought to your new workspace. Here we have EvolActiveX classes:
Attachments
Project Files Evol ActiveX Demo