Programming Considerations > Programming In C++ > Programming the 2D Chart Control |
At this point, you are ready to actually program the control. To do this, note the following:
· A wrapper class header file is defined for each 2D Chart object. Examples: the wrapper class header file for the Chart2D object is named chart2d.cpp, and the wrapper class header file for the Border object is named border.cpp.
· The wrapper class header file for an object defines two routines for each of its properties: a routine that gets the current value of the property, and a routine that sets the value of the property. For example, the chart2d.cpp file defines two routines for the IsDoubleBuffered property of the Chart2D object: GetIsDoubleBuffered(), which gets the current value of the IsDoubleBuffered property, and SetIsDoubleBuffered(), which sets the value of the IsDoubleBuffered property.
· Methods defined for an object are included in the wrapper class header file for the object.