LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 6
(4,366 Views)
Hi Marco,

Refer to an earlier post here that I replied to.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 6
(4,361 Views)
Unfortunatly early post has been deleted.
Any suggest ???


Thank's again
Marco


0 Kudos
Message 3 of 6
(4,355 Views)
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 Kudos
Message 4 of 6
(4,351 Views)
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 Kudos
Message 5 of 6
(4,346 Views)
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 Kudos
Message 6 of 6
(4,336 Views)