//get the item's current status.
item_data.item_attr=UF_STYLER_SENSITIVITY;
item_data.item_id=item_id;
UF_STYLER_ask_value(dialog_id, [$item_data)]
cur_status=item_data.value.integer;
问题已经解决了。代码如下,与大家分享。这是一个函数的定义。
//this functions set the dialog item's sensitivity.
// noted: item_type
// 1 -------it fefers items with subitems.
// 0--------it refers to items with no subitems.
static void basin_set_dlg_item_sens(int dialog_id, char *item_id, int item_status, int item_type)
{
UF_STYLER_item_value_type_t item_data;
//get the item's current status.
int cur_status;
item_data.item_attr=UF_STYLER_SENSITIVITY;
item_data.item_id=item_id;