[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Win32 API question: How to get a window/chart handle?



PureBytes Links

Trading Reference Links

*Only for those who use DLLs and might know Win32 API*
Others, please disregard.

I need some help with Win32 API ( user32.dll ).
I am trying to find a function ( or a combination of )
to return  a Current window handle.

Reason: every chart is window and every window has
a handle. If I use GlobPro/Hashnums/Qlsnumbs and
multiple studies/system, I need that handle to use is as
a unique object name to allocate memory per system
( same system  run on different symbols ).

Note: the following tricks to create a unique object name
will not work for me:
getsymbolname will not work - might be
two charts with same symbol,  + barinterval will not
work - might be same chart, + firstdate + lastdate
will not work - might be the same chart for other
system, + parameters will not work - optimization
problem, input will work but no thanks.

Anybody out there can help me out on that?
How can I get a window handle of the chart
that the system is running in?
Not the top window, not  the active, not the
child or the parent but the  Current one - the
one out which I am going to call this function.
:-)
Val.