diff --git a/src/thirtytwo/Controls/ButtonControl.cs b/src/thirtytwo/Controls/ButtonControl.cs index 57decff..8d4092e 100644 --- a/src/thirtytwo/Controls/ButtonControl.cs +++ b/src/thirtytwo/Controls/ButtonControl.cs @@ -7,7 +7,7 @@ namespace Windows; public partial class ButtonControl : Control { - private static readonly WindowClass s_buttonClass = new("Button"); + private static readonly WindowClass s_buttonClass = new(registeredClassName: "Button"); public ButtonControl( Rectangle bounds = default, diff --git a/src/thirtytwo/Controls/StaticControl.cs b/src/thirtytwo/Controls/StaticControl.cs index 67c2c77..efa611b 100644 --- a/src/thirtytwo/Controls/StaticControl.cs +++ b/src/thirtytwo/Controls/StaticControl.cs @@ -5,9 +5,9 @@ namespace Windows; -public partial class StaticControl : Window +public partial class StaticControl : Control { - private static readonly WindowClass s_buttonClass = new("Static"); + private static readonly WindowClass s_buttonClass = new(registeredClassName: "Static"); public StaticControl( Rectangle bounds = default,