Removes a button added with the CreateButton macro.
Syntax
DestroyButton("button-id")
Parameter | Description |
button-id | Identifier assigned to the button in the CreateButton macro. The button ID must be enclosed in quotation marks. |
Example
The following macro removes the Ideas button that was created in the example for the CreateButton macro:
DestroyButton("btn_ideas")
Comments
You cannot use this macro to remove a standard Help button: Contents, Search, Back, or History. Therefore, the button identifier cannot be the same as an identifier used for the standard Help buttons. (The standard Help button identifiers are listed in the ChangeButtonBinding macro.)
Windows Help ignores this macro if it is executed in a secondary window.
See Also
ChangeButtonBinding, CreateButton, DisableButton, EnableButton