隐藏、显示对象用UF_OBJ_set_blank_status()
查看对象显示情况用UF_OBJ_ask_display_properties()
效果:
源码:
#include "Text.h" extern DllExport void ufusr(char *param, int *returnCode, int rlen) { UF_initialize(); tag_t tagBody = 44754; uc1601("即将隐藏", 1); UF_OBJ_set_blank_status(tagBody, UF_OBJ_BLANKED); UF_OBJ_disp_props_t disp_props0; UF_OBJ_ask_display_properties(tagBody, &disp_props0); if (disp_props0.blank_status == UF_OBJ_BLANKED) { uc1601("体被隐藏", 1); } else { uc1601("体被显示", 1); } uc1601("即将显示", 1); UF_OBJ_set_blank_status(tagBody, UF_OBJ_NOT_BLANKED); UF_OBJ_disp_props_t disp_props1; UF_OBJ_ask_display_properties(tagBody, &disp_props1); if (disp_props1.blank_status == UF_OBJ_BLANKED) { uc1601("体被隐藏", 1); } else { uc1601("体被显示", 1); } UF_terminate(); } extern int ufusr_ask_unload(void) { return (UF_UNLOAD_IMMEDIATELY); }