Szerkesztés

Megosztás a következőn keresztül:


Testing the Modified ATL DHTML Control

Try out your new control to see how it works now.

To build and test the modified control

  1. 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.

  2. 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.

  3. Test the two new buttons to see how they work.

Now test the methods that are not part of the UI.

  1. Highlight the control, so the border is activated.

  2. On the Control menu, choose Invoke Methods.

    The methods in the list labeled Method Name are the methods that the container can call: MethodInvoked and GoToURL. All other methods are controlled by the UI.

  3. Select a method to invoke and choose Invoke to display the method's message box or to navigate to www.microsoft.com.

  4. 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.

See also

Support for DHTML Control