Adding the Control to a Project: MSVC Users
Below are the steps for adding the Flipper CAD Control to an existing Microsoft Visual C++ 6.0 project. The project must contain a form for the control to be placed on.
From the standard toolbar menu, go to Project|Add To Project|Components and Controls...
In the Components and Controls Gallery dialog, double click on the Registered ActiveX Controls folder.
Find and click the Flipper CAD Control 3.x item. When prompted with 'Insert this component?', click OK. Click OK again to confirm the default classes to be generated. The Flipper CAD Control icon will now show up in your controls toolbox. Close the dialog.
Click on the
icon from the toolbox, and add an instance of the control to your form by clicking and dragging the boundaries
of the control.
A member variable needs to be mapped to the CFlpCAD member. Right-click on the control, click Class Wizard.... Select the Member Variables tab if not already selected, and click the Add Variable... button.
In the Add Member Variable dialog, enter a name and click OK. Click OK again to close the MFC Class Wizard dialog.
Now you are ready to go! See ViewMouseTool for adding shapes to the control with the mouse.
Last modified on: Tuesday, February 04, 2003