Login Page - Create Account

Support Board


Date/Time: Tue, 25 Feb 2025 10:00:07 +0000



Post From: How to create a Window with a Table in Sierra Chart Custom Study

[2021-04-05 00:26:51]
User741184 - Posts: 44
I have not been able to achieve fully what I exactly want to implement. I have just been able to display a blank window on the chart with this code.

const char g_szClassName[] = "myWindowClass";

  WNDCLASS wc = { };

  wc.lpfnWndProc = WndProc;
  wc.hInstance = NULL;
  wc.lpszClassName = g_szClassName;

  RegisterClass(&wc);

  HWND hwnd = CreateWindowEx(
    0, // Optional window styles.
    g_szClassName, // Window class
    "Learn to Program Windows", // Window text
    WS_OVERLAPPEDWINDOW, // Window style

    // Size and position
    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,

    (HWND)sc.ChartWindowHandle, // Parent window
    NULL, // Menu
    NULL, // Instance handle
    NULL // Additional application data
  );
  ShowWindow(hwnd, SW_SHOW);