static void Main() { OleInitialize(IntPtr.Zero); // Without this, standard accessibility components like title, min button, max button etc appear // in the incorrect location Win32.SetProcessDPIAware(); var host = new Host(); Win32.MSG msg; while (Win32.GetMessage(out msg, IntPtr.Zero, 0, 0)) { Win32.TranslateMessage(ref msg); Win32.DispatchMessage(ref msg); } host.Dispose(); }
public Control(Host host, Win32.RECT bounds, string text) { Host = host; Bounds = bounds; Text = text; }