[求助]急!怎么调用labwindows自动生成的函数。
急!怎么调用labwindows自动生成的函数。<img src="attachments/dvbbs/2006-5/2006561551374400.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-5/2006561551374400.jpg\');}" onmousewheel="return imgzoom(this);" alt="" /> <P>真是太谢谢你了!</P><P>你真是我 大救星!</P> <P>可以直接把这个函数里面的代码复制到上面就可以的!我以前也调用过自动生成的函数,不过一下记不太清楚方法了,你试着这样写进去试试:</P>
<P>callstart(panel,control,event,*callbackdata,eventdata1,eventdata2);</P>
<P>将panel换成你的程序中的面板的名字,比如叫做panelhandle之类的,要看你的程序的定义了!control也要换成你的控件名字!我一下子找不着我原来的那个程序了!</P> <P>找着了,原自动生成的程序是这样子的:</P>
<P>int CVICALLBACK cpubbs_del_data_callback (int panel, int control, int event,<BR>void *callbackData, int eventData1, int eventData2)</P>
<P>调用的时候这样子写:</P>
<P>cpubbs_del_data_callback (panelHandle,PANEL_DELETEDATA,EVENT_COMMIT,0,0,0);</P> 俺感觉应该发送窗口消息为好 版主很尽心 如果我这个函数没有固定的控件呢,比如几个控件的回调函数公用一个,而我需要调用这个回调函数,控件名应该怎么传递 应该是哪个控件触发的函数回调,就把该控件的的ID传递给所要调用的回调函数吧,这样在被调用的回调函数中就可以识别具体是那一个控件产生的函数调用!
页:
[1]