LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
DerrickB

Provide a public method for retrieving the hWnd of a VI window

Status: Declined

NI has a private method for returning the hWnd of a VI but there is no "publicly" available method for this. The private method is already shared around forums and used extensively as interacting with the Win32 APIs is a common need for advanced UIs. The appearance configs for VIs only work relative to other VIs and trying to develop LabVIEW based applications that are used alongside other applications presents many roadblocks, even with other NI software such as TestStand. (TestStand has an API method for getting the hWnd!)

 

The other method commonly used is to also use the Win32 FindWindow call however this presents issues if there are multiple windows with the same captions (easy enough with Cloned VIs) and is not a robust approach.

2 Comments
DerrickB
NI Employee (retired)

I was given some guidance that I should frame the posts with specific use-cases in mind instead of just opening potential to introduce hard to support bugs. Asking to have this request removed and just like Hydra, a few more are likely to pop up in its place with more specific use-cases described.

HYDRA-1

 

Christina_R
Active Participant
Status changed to: Declined
 

Christina Rogers
Principal Product Owner, LabVIEW R&D