10-14-2011 02:24 PM
Hi guys,
I've a proble with some Windows API functions.(GetTitleBarInfo for example).This function needs parameter a struct pointer that than allows me to get the tiitle bar name.Ok ,but How i can handle a struct point?In Reference guide says to treat Pointer as integer but i not understand how do to reach my purpose.
Thanks,
Luca.
10-14-2011 02:30 PM - edited 10-14-2011 02:31 PM
Are you trying to get the title bar of a LabVIEW window? You do not need to use the Windows API for that. The Front Panel Window:Title Property will tell you that.
10-14-2011 02:36 PM
Hi sMercurio,thanks for the fast answer.
No,my purpose is to get the window title bar of other application running.
Luca.
10-14-2011 03:07 PM
For most things Windows API related I suggest the following document:
https://decibel.ni.com/content/docs/DOC-2030
In this case you just need to construct the proper cluster to get the info:
10-14-2011 07:03 PM
Cool,it is what i want to find.Thank you very much.Only one thing: when you set argument and parameter function in dialog box relative to API nodenin labview,which data type use to represent a pointer to struct?
10-15-2011 10:26 AM
@Igottabanana wrote:
Cool,it is what i want to find.Thank you very much.Only one thing: when you set argument and parameter function in dialog box relative to API nodenin labview,which data type use to represent a pointer to struct?
For a pointer to a structure you need to set the parameter to Adapt To Type and make sure to construct a cluster that matches the structure exactly. Some C programming knowledge is definitely helpful and for more complex structures really unavoidable.