Function ProMenubuttonDelete
Description
Permanently disables a menu item by removing a specified button from a menu. It can be called only after the menu has been read in by ProMenuFileRegister() and while the menu is not active.
This function affects Menu-Manager (mode-specific) menus only.
Synopsis
#include <ProMenu.h>
ProMenubuttonDelete
(
ProMenuName menuname
/* (In)
The name of the menu.
*/
/* (In)
The name of the menu button.
*/
int* result
/* (Out)
The result. The possible values are as follows: 1 -- Everything worked. 0 -- The menu has not been created (see the function ProMenuFileRegister()). -1 -- The menu is already active. -2 -- The specified button does not exist in the specified menu.
*/
)
Returns
The function successfully deleted the menu button.
There was a general error and the function failed.
See Also
Sample Code References
User Guide References
¿Fue esto útil?