Пример #1
0
rusty::controls::Window::Window(HINSTANCE hInstance, EventHandlerInterface *event_handler, const wchar_t * const lpClassName, const wchar_t * const lpWindowName, HWND hWndParent, unsigned long dwExStyle, unsigned long dwStyle, uintptr_t hMenu, int icon_id, int x, int y, int nWidth, int nHeight, bool set_default_cursor) : hInstance(hInstance), lpClassName(lpClassName)
{
    //Create panels
    Window2(icon_id, set_default_cursor);

    hWnd = CreateWindowEx(dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, reinterpret_cast<HMENU>(hMenu), hInstance, event_handler);
    assert(hWnd != nullptr);
}
Пример #2
0
rusty::controls::Window::Window(HINSTANCE hInstance, EventHandlerInterface *event_handler, const wchar_t * const lpClassName, const wchar_t * const lpWindowName, HWND hWndParent, unsigned long dwExStyle, unsigned long dwStyle, int nCmdShow, int icon_id, int x, int y, int nWidth, int nHeight, bool set_default_cursor) : hInstance(hInstance), lpClassName(lpClassName)
{
    //Create main windows or child windows
    Window2(icon_id, set_default_cursor);

    hWnd = CreateWindowEx(dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, nullptr, hInstance, event_handler);
    assert(hWnd != nullptr);

    if(nCmdShow != -1)
        ShowWindow(hWnd, nCmdShow);
}
Пример #3
0
int main(int argc, char *argv[])
{
    if (!TXT_Init())
    {
        fprintf(stderr, "Failed to initialise GUI\n");
        exit(-1);
    }

    TXT_SetDesktopTitle("Not Chocolate Doom Setup");

    ScrollingMenu();
    Window2();
    SetupWindow();

    TXT_GUIMainLoop();

    TXT_Shutdown();

    return 0;
}