Showing results for 
Search instead for 
Did you mean: 

ActiveX video windows handle

I am using a DLL file provided by a camera manufacture to stream video.  I have been able to record the video, but am having problems displaying video on the from panel using ActiveX.  The DLL function which displays video requires a windows handle to know where to stream the video.  This appears to be a reasonable request for the video stream but I have not been able to determine how to get the handle id from the activeX windows media player when drop into the front panel of the LabVIEW display.

0 Kudos
Message 1 of 5
ActiveX container is a child window of front panel, ActiveX window is a grandchild window of front panel.
Use G Toolbox, you can find the window handle programatically
George Zou
0 Kudos
Message 2 of 5

Thank you for your shameless self promotion to software that must be purchased.  I just wasted about 2 hours before I realized I could not use gtoolbox without first buying the software.  If you are going to self promote at least be upfront about it.

0 Kudos
Message 3 of 5
I think you should be able to do this by calling the "FindWindow" and "FindWindowEx" functions from the standard Windows user32 DLL. You can find more information on Microsoft's MSDN site. You can try the attached VI (LabVIEW 8.2), but I don't know if it will work for you since I don't have anything that I can use to stream.
0 Kudos
Message 4 of 5

Thank you for your help.  Unfortunately, I have LV 7.1, however I was able to find that allowed me to get the window ID.

0 Kudos
Message 5 of 5