设置环境具体是怎么设置?
我的一部分代码如下:int UIEXE_cancel_cb ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
/* Make sure User Function is available. */
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
uc1601("Cancel button is pressed",1);
UF_STYLER_item_value_type_t data;
data.item_attr = UF_STYLER_VALUE;
data.item_id = UIEXE_INT_1; //get the value in the edit box
UF_STYLER_ask_value(dialog_id,[$data)]
char message[133];
message[0]='\0';
sprintf(message,"now the value in the integer is %d",data.value.integer);
uc1601(message,1);
UF_terminate ();
return ( UF_UI_CB_EXIT_DIALOG );
} |