Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 11:53:48 +0000



Post From: What should be the HINSTANCE value with Sierra Chart?

[2021-04-08 16:12:41]
User310645 - Posts: 49
I've only created either "top level" windows in which I've drawn my own GDI components or added common controls (ie. those from comctl32.lib) directly to an existing chart window.

In the first case the hWndParent would be NULL and the hInstance is the SierraChart.exe hInstance as described previously.
In the second, hInstance is NULL and hwndParent is the chart window handle.

Not being a windows GUI programmer and not knowing your use case I don't know if you mean you want to embed a window inside another and if this is possible. Maybe just draw the components directly to the chart window?

To add a comment to Ticks, to be fair to Sierra, this is Windows GUI programming. It has nothing to do with SierraChart so you can see why they wouldn't want to get bogged down answering general windows programming questions. There is already masses of information on the internet covering this especially Microsofts own documentation although I admit its sometimes difficult to find if you don't know what you're actually looking for.