09-08-2009 05:17 PM
09-08-2009 05:51 PM - edited 09-08-2009 05:52 PM
I believe you have to hook into the main window message queue, there is a way to do that in CVI, so that you see all of the "Windows" messages. It's the RegisterWinMsgCallback function.
I have never been able to get this to work very well, as I recall it turns out there are some subtle rules as far as some messages getting intercepted/dispatched before you see them in the queue. There are some threads on this topic on this forum though maybe from years ago. It could be NI has made changes since I last tried to use this function.
And I believe you can only hook into the message queue for the main panel, not to any child panels.
If it's too painful to get the Windows messaging working you could try some form of Win32 IPC such as mailboxes, or a pipe.
Menchar