Skip to content

Add Menus and Buttons to window? #40

@Shadowblitz16

Description

@Shadowblitz16

Is there a way to add menus and buttons to the window?

using System;
using WinApi.Gdi32;
using WinApi.User32;
using WinApi.Windows;
using WinApi.Windows.Controls;
namespace Win32.net
{
    class Program
    {
        static int Main(string[] args)
        {
            using (var win = Window.Create(text: "Hello"))
            {
                win.Show();
                //win.Factory.AppendMenu()       ??
                //win.Factory.CreateWindow<Menu> ??
                win.Factory.CreateWindow<Button>(win, "Test", WindowStyles.WS_VISIBLE | WindowStyles.WS_CHILD);
                return new EventLoop().Run(win);
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions