#include <origin.h>
#include <GetNBox.h>
#include <xfutils.h>


//#include <..\OriginLab\DialogEx.h>
//#include <..\OriginLab\TreeEditSplitter.h>
//#include <..\OriginLab\ProjectBrowser.h>

//static ProjectBrowserDlg s_PBDlg;
typedef bool (*FUNCPB) ();//, int nSeletedMode =MULTIPLE_SELETE, int nOnlyShowLayers  =  SHOW_ALL);



void pb()
{
	
	///Cheney 2007-7-2 UPDATE_XF_ERR_THROW
	//out_str(" ");
	warning_msg_box(" ", false, 'R');
	///end UPDATE_XF_ERR_THROW
	string strSeletePage;
	Function fn = Project.FindFunction("OpenPB", "OriginLab\\ProjectBrowser.c");
	FUNCPB pfn = fn;
	if(pfn)
	{
		pfn();
	}
	/*
	BOOL_FUNC fn = Project.FindFunction("OpenProjectBrowser", "Originlab\\ProjectBrowser.c");
	if(fn)
	{
		fn();
	}
	else
	{
		out_str("failed to compile ProjectBrowser.c");
	}
	*/
	
}

//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 pb_before_execute(TreeNode& trGetN, int nGetNDialog, int& nRet, int dwCntrl)
{

}
