Now that the project has been created, add the VSFlexGrid control to the project. (This is equivalent to adding the control to the Visual Basic Toolbox.) The exact steps may vary a little depending on the version of Visual C++ you are using.
In VC++ 5, select the Project | Add and Controls menu. You will see a list of elements that you can add to the project. Select Registered ActiveX Controls by double-clicking it. A list of registered ActiveX controls will appear. If the VSFlexGrid control does not appear on the list, you need to register it.
Select the ComponentOne VSFlexGrid control, then click Insert.
You will see a dialog box informing you of the classes that will be generated by the Wizard: CvsFlexGrid, COleFont, and COlePicture. These classes are wrappers that the Wizard creates for you based on information it retrieves from the control's type library. Click OK to proceed, then Close to dismiss the components dialog box.
Go to the VC++ workspace window and select the Files pane. You will see that VC++ added a few files to the project, including vsflexgrid.h and vsflexgrid.cpp. If you open these files, you will see that they define members to access every property and method of the underlying object. For example, the Row property of the VSFlexGrid ActiveX control is read or set using the GetRow and SetRow methods of the CvsFlexGrid C++ class.