Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 15:01:20 +0000



[Programming Help] - ACSIL - GetWindowRect function and SC Charts windows

View Count: 1248

[2017-07-02 19:18:45]
Zosimus - Posts: 345
Will the Windows API GetWindowRect function work within an acsil study for getting the pixel dimentions of a specific chart? (windows.h included of course).
If yes which handle should I use for the window of the chart to which the study is applied?

BOOL WINAPI GetWindowRect(
_In_ HWND hWnd,
_Out_ LPRECT lpRect
);
[2017-07-02 20:46:33]
Sierra Chart Engineering - Posts: 104368
Yes this will work.

You will need to use:
sc.ChartWindowHandle

But you probably want to use the GetClientRect instead.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account