#include <origin.h>
#include <GetNBox.h>
#include <xfutils.h>
/*------------------------------------------------------------------------------*
 * File Name: customMenuEditor.XFC												*
 * Creation: Kenny 04/29/2009													*
 * Purpose: Origin XF file														*
 * Copyright (c) OriginLab Corp. 2009											*
 * All Rights Reserved															*
 *																				*
 * Modification Log:															*
 *------------------------------------------------------------------------------*/

//put additional include files here

//put your own support static functions here

typedef void (*PFN_SHOW_LT_CUSTOM_MENU_EDITOR_DLG)();
#define GET_PFN_SHOW_LT_CUSTOM_MENU_EDITOR_DLG	(PFN_SHOW_LT_CUSTOM_MENU_EDITOR_DLG)Project.FindFunction("ShowLTCustomMenuEditorDlg", "OriginLab\\LTCustomMenuEditorDlg")


void customMenu()
{
	PFN_SHOW_LT_CUSTOM_MENU_EDITOR_DLG pfn_ShowLTCustomMenuEditorDlg = GET_PFN_SHOW_LT_CUSTOM_MENU_EDITOR_DLG;
	if(pfn_ShowLTCustomMenuEditorDlg)
		pfn_ShowLTCustomMenuEditorDlg();
}

//nGetNDialog = 0,1,2, corresponding to the XF GetN dropdown, 0 = dialog is not used
//you can change nRet to be one of XFEVT_PROCEED (defualt), XFEVT_ABORT, XFEVT_PROCEED_NO_DLG or XFEVT_PROCEED_WITH_DLG(when nGetNDialog = 0)
//nGetNDialog = -1 when Ok on GetN dialog to allow handler to preocess <auto> etc variables
//dwCntrl is combination of bits
//LTXF_FROM_GUI_MENU, LTXF_FROM_GUI_PROMPT, LTXF_FROM_AUTO_UPDATE, LTXF_FROM_FUNCTION, LTXF_THEME_USED, LTXF_CHANGE_PARAM
void customMenu_before_execute(TreeNode& trGetN, int nGetNDialog, int& nRet, int dwCntrl)
{

}
