Testing the Modified ATL DHTML Control
Try out your new control to see how it works now.
To build and test the modified control
Rebuild the project and open it in Test Container. See Testing Properties and Events with Test Container for information on how to access Test Container.
Resize the control to show all of the buttons you added.
Examine the two buttons that you inserted by altering the HTML. Each button bears the label you identified in Modifying the ATL DHTML Control: Refresh and HelloHTML.
Test the two new buttons to see how they work.
Now test the methods that are not part of the UI.
Highlight the control, so the border is activated.
On the Control menu, choose Invoke Methods.
The methods in the list labeled Method Name are the methods that the container can call:
MethodInvoked
andGoToURL
. All other methods are controlled by the UI.Select a method to invoke and choose Invoke to display the method's message box or to navigate to
www.microsoft.com
.In the Invoke Methods dialog box, choose Close.
To learn more about the various elements and files that make up an ATL DHTML control, see Identifying the Elements of the DHTML Control Project.