OCX is an ActiveX object. In LabVIEW, you use an ActiveX container to hold ActiveX object.
The ActiveX container is a child window of the front panel window; the ActiveX object window is a child window of ActiveX container, ie. a grandchild window of the front panel window.
You can use FindWindowEx to find the top, the child, and the grand child window.
I don't if you can get the hWnd from automation refnum, unless there is a propety from the OCX.
George Zou
George Zou