Exemplo n.º 1
0
/*====================================================================*\
FUNCTION : ProUtilAssign
PURPOSE  : assigns option to a member (being dereferenced & casted to int)
	   Can be used in promenu_on_button. The menu will diappear after 
	   the chosen menu button is pushed.
\*====================================================================*/
int ProUtilAssign(ProAppData p_member, int option)
{
    ProError status;

    *((int *)p_member) = option;
    status = ProMenuDelete();
    TEST_CALL_REPORT("ProMenuDelete","ProUtilAssign", status,
    				status != PRO_TK_NO_ERROR);

    return (0);
}
Exemplo n.º 2
0
// 退出快捷菜单
void OnMenuQuit()
{
	/*if (!QuickCheckValidLicense(SMART_PROFESSIONAL))
		return;*/

	int nWnd;
	if (ProWindowCurrentGet(&nWnd) == PRO_TK_NO_ERROR)
	{
		ProMenuDelete();
		ProWindowActivate(nWnd);
	}
}
Exemplo n.º 3
0
/*====================================================================*\
FUNCTION : ProUtilMenuKill
PURPOSE  : Deletes the number of menus given.
\*====================================================================*/
int ProUtilMenuKill(ProAppData p_member, int n_menus)
{
    ProError status;
    int      i;

    for (i = 0; i < n_menus; i++)
    {
    status = ProMenuDelete();
    TEST_CALL_REPORT("ProMenuDelete","ProUtilMenuKill", status,
    				status != PRO_TK_NO_ERROR);
    }

    return (0);
}