小心摇杆 发表于 2006-5-6 23:05:20

[求助]急!怎么调用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="" />

小心摇杆 发表于 2006-5-7 07:57:22

<P>真是太谢谢你了!</P>
<P>你真是我 大救星!</P>

cpubbs 发表于 2006-5-7 04:01:12

<P>可以直接把这个函数里面的代码复制到上面就可以的!我以前也调用过自动生成的函数,不过一下记不太清楚方法了,你试着这样写进去试试:</P>
<P>callstart(panel,control,event,*callbackdata,eventdata1,eventdata2);</P>
<P>将panel换成你的程序中的面板的名字,比如叫做panelhandle之类的,要看你的程序的定义了!control也要换成你的控件名字!我一下子找不着我原来的那个程序了!</P>

cpubbs 发表于 2006-5-7 04:04:28

<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>

hotpower 发表于 2008-7-10 02:35:26

俺感觉应该发送窗口消息为好

doctoryy123 发表于 2008-7-14 09:35:32

版主很尽心

ldd2w 发表于 2010-8-5 16:27:56

如果我这个函数没有固定的控件呢,比如几个控件的回调函数公用一个,而我需要调用这个回调函数,控件名应该怎么传递

tonwelzt 发表于 2010-8-26 17:20:37

应该是哪个控件触发的函数回调,就把该控件的的ID传递给所要调用的回调函数吧,这样在被调用的回调函数中就可以识别具体是那一个控件产生的函数调用!
页: [1]
查看完整版本: [求助]急!怎么调用labwindows自动生成的函数。