LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

InstallWinMsgCallback vs RouteWinMsgToPanelCallback

Hi,
anyone knows how to use InstallWinMsgCallback function ???
I tried to use it like help said, but only WM_SETFOCUS event function.
Any suggest ???

I had same problem with RouteWinMsgToPanelCallback, but with this function
no message is chatched.

Thank's
Marco


0 项奖励
1 条消息(共 6 条)
4,570 次查看
Hi Marco,

Refer to an earlier post here that I replied to.

Best Regards,
Jonathan N.
National Instruments
0 项奖励
2 条消息(共 6 条)
4,565 次查看
Unfortunatly early post has been deleted.
Any suggest ???


Thank's again
Marco


0 项奖励
3 条消息(共 6 条)
4,559 次查看
Hi Marco,
 
what do you mean with Unfortunatly early post has been deleted.? Have you read the post Jonathan linked above? Does it help you?
 
Best Regards,
 
Fabio
Fabio M.
NI
Principal Engineer
0 项奖励
4 条消息(共 6 条)
4,555 次查看
That means i tried to read post, but i didn't find it. Linked page told me
it.

Marco

"Fabio_81" <x@no.email> ha scritto nel messaggio
news:1193733611887-603164@exchange.ni.com...
> Hi Marco,
> &nbsp;
> what do you mean with Unfortunatly early post has been deleted.? Have you
> read the post Jonathan linked above? Does it help you?
> &nbsp;
> Best Regards,
> &nbsp;
> Fabio


0 项奖励
5 条消息(共 6 条)
4,550 次查看
Marco,
 
I'm guessing that you are reading these messages from a news server, rather than from the NI website. Here is the text of the message referred to:

 
Howdy grassgnd,
 
First off, I would suggest reading How Do CVI Panels Process Windows Messages? to gather some basic information on how CVI processes Windows messages.
 
So the overview that is discussed in the link above is that the OS sends a message to the WinProc (Windows Procedure) along with some parameters including the 2 message data parameters, WParam and LParam (data types of unsigned int and long).  These parameter both specify additional information based on the message received. The message sent to the WinProc is of type integer and is usually expressed in constant form such as WM_CLOSE, WM_PAINT, etc.   
 
In our case, we are using InstallWinMsgCallback which installs a callback function for a specific Windows message posted or sent to a LabWindows/CVI panel. The second parameter of InstallWinMsgCallback contains the message (integer).
 
Refer to the CVI shipping example msgdemo that demonstrates how to enable your panel to respond to any Windows message it receives.  Locate this by selecting Help >> Example Finder >> Index tab (type the text "message").
 
Hope this clarifies a little bit for you.
 
Best Regards,

Jonathan N.
National Instruments R&D

Support | Product Feedback | NI Developer Zone
0 项奖励
6 条消息(共 6 条)
4,540 次查看