| Programming Considerations > Programming In C++ > Inserting the 3D Chart Control into an OLE Container Project |
In the Visual C++ environment, a 3D Chart control behaves like any other OLE control, which means that it can be incorporated into a container such as a dialog or an application window.
To add the 3D Chart control to an OLE container project, use Component Gallery as follows:
1. From the Insert menu, select Component. The Component Gallery dialog box appears.
2. Select the OLE Controls tab.
3. Select the 3D Chart control icon in the Component Gallery window.
4. Click the Insert button. This displays a Confirm Classes dialog box, which lists the 3D Chart control classes.
5. Click the OK button to accept the class generated by Component Gallery.
6. Click the Close button to close Component Gallery.
7. At this point, the 3D Chart wrapper class, CChart3D, is added to your project. This means that the 3D chart control can now be added to your application's main dialog box, as shown below.