Chapter 26 - Getting Started with ActiveX Controls
Visual C++ 6: The Complete Reference
Chris H. Pappas and William H. Murray, III
Copyright 1998 The McGraw-Hill Companies
Testing the TDCtrl ActiveX Control
The Test Container can be used, once again, to test the final version of the TDCtrl control.
For this example, open the test container while in Visual C++ and insert the control by selecting it from the list of registered controls. When the control is inserted it can be resized as shown in Figure 26-13.
Figure 26-13: The completed TDCtrl control with a yellow background is inserted and resized
Now position the cursor over the control and click the left mouse button to see the current time and date information on a light gray background, as shown in Figure 26-14.
Figure 26-14: The time and date are displayed when a mouse hit occurs