return -1 /* out of memory */
if ((panelHandle = LoadPanel (0, "DiagnosisFlowTool.uir", PANEL)) <0)//获取面板句柄
return -1
DisplayPanel (panelHandle)//敏卖显示面板
LoadFlowResource()//这个应该是自定义的函数
GetPanelHandleFromTabPage (panelHandle, PANEL_PROPERTYTAB, 0, &FlowPropertyPageHandle)//获取PANEL_PROPERTYTAB控件中index为0的TAB句柄
GetPanelHandleFromTabPage (panelHandle, PANEL_PROPERTYTAB, 1, &NodePropertyPageHandle)//同上
GetPanelHandleFromTabPage (panelHandle, PANEL_PROPERTYTAB, 2, &StimulateSignalPropertyPageHandle)//同上
GetPanelHandleFromTabPage (panelHandle, PANEL_PROPERTYTAB, 3, &ResponseSignalPropertyPageHandle)//同州拿散上
GetPanelHandleFromTabPage (panelHandle, PANEL_PROPERTYTAB, 4, &YesJumpPropertyPageHandle)//同上
GetPanelHandleFromTabPage (panelHandle, PANEL_PROPERTYTAB, 5, &NoJumpPropertyPageHandle)//同上
//获取面板宽度
GetCtrlAttribute (panelHandle, PANEL_FMTTREE, ATTR_WIDTH, &ConvasWidth)
//获取面板高度
GetCtrlAttribute (panelHandle, PANEL_FMTTREE, ATTR_HEIGHT, &ConVasHeight)
//设置PANEL_PROPERTYTAB控件变灰
SetCtrlAttribute (panelHandle, PANEL_PROPERTYTAB, ATTR_DIMMED, 1)
RunUserInterface ()//运行界面程序
DiscardPanel (panelHandle)//删册氏除面板
return 0
SetAxisScalingMode(panel,PANEL_GRAPH,VAL_LEFT_YAXIS,VAL_MANUAL,min,max)设置左Y坐标轴MANUAL方式工作,并设置最大值和最小值。
SetCtrlAttribute(panel,PANEL_GRAPH,ATTR_XPRECISION,log)
设置X轴的闭档坐标数据的小数位位数。
SetCtrlAttribute(panel,PANEL_ACQUIRE,ATTR_DIMMED,1)
SetCtrlAttribute(panel,PANEL_GRAPH,ATTR_XAXIS_GAIN,1.0/rate)
设置X坐标轴的增益。
data=malloc(sampsPerChan*numChannels*sizeof(float64)))=NULL
分配内存,成功的大闭话返回内存指针,不成功返回NULL(空指针)。
ProcessDrawEvents()
时轿仿乱时刷屏。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)