/*
	Copyright (c) 2024 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved.
*/


/*---------------------- Pro/Toolkit Includes ------------------------*/
#include <ProToolkit.h>
#include <ProMenu.h>

/*---------------------- Function Prototypes -------------------------*/
ProError ProDefineSelfClosingMenu();


ProError ProDefineSelfClosingMenu()
{
    int menuId;

    ProMenuFileRegister("mymenu","mymenu.mnu", &menuId);
    ProMenubuttonActionSet("mymenu", "Partial Check", ProCheckPart, NULL, 0);
    ProMenubuttonActionSet("mymenu", "Full Check", ProCheckPart, NULL, 1);
    ProMenubuttonActionSet("mymenu", "Quit Checks", 
                                   (ProMenubuttonAction)ProMenuDelete, NULL, 0);
    ProMenubuttonActionSet("mymenu", "mymenu", 
    				(ProMenubuttonAction)ProMenuDelete, NULL, 0);
    return ( PRO_TK_NO_ERROR );
}