Documentação da API > Menu manager menus > Object ProMenu > Function ProMenuAuxfileRegister
Function ProMenuAuxfileRegister
Description
Extends an existing Creo Parametric menu by reading in an auxiliary menu file. This enables you to maintain additions to standard Creo Parametric menus in separate files, but have them appear as part of the Creo Parametric menu file.
This function affects Menu-Manager (mode-specific) menus only.
The recommended way of adding new items to the standard Creo Parametric menus is as follows:
The menu menuname must have been loaded via ProMenuFileRegister() before this function can be called, and it cannot be active on the screen at the time of this call.
The argument filename must be different from the standard Creo Parametric menu name.
The contents of filename must adhere to the Creo Parametric menu standards. Specifically, the first three lines must be the same as the Creo Parametric menu file, after which this file need only contain your additions.
Synopsis
#include <ProMenu.h>
ProMenuAuxfileRegister
(
ProMenuName menuname
/* (In)
The name of the menu.
*/
/* (In)
The name of the auxiliary menu file.
*/
int* menu_id
/* (Out)
The identifier of the extended menu This argument can be NULL.
*/
)
Returns
The function successfully extended the menu.
The auxiliary menu file was not found.
See Also
Sample Code References
User Guide References
Isto foi útil?