Testing the Control Drawing Behavior
To test the new drawing behavior of the control, run Test Container and load the control.
To insert the Circ control in Test Container
-
Use Control Panel to modify the Windows system background color so that it is not white.
-
On the Tools menu, click ActiveX Control Test Container.
-
On the Edit menu, click Insert New Control.
The Insert Control dialog box appears.
-
From the list box, select Circ Control.
-
Click OK to close the Insert Control dialog box and insert the control into Test Container.
The Circle control is displayed in Test Container and painted using the same background color as the Test Container window. You can also modify the BackColor property value.
To modify the BackColor property
-
On the Control menu, click Invoke Methods.
-
In the Method Name box, select the PropPut version of the BackColor property.
-
In the Parameter Type control, select VT_COLOR. The Parameter Value control changes to a Choose Color button.
-
Click the Choose Color button, and from the Color dialog, select red. Click OK.
-
Click Invoke. The Circle control background color changes to red.
When you have finished, close Test Container.