From f236f3a9ad545399f5ccccb515c9b4126f6a2e65 Mon Sep 17 00:00:00 2001 From: Jeremy Kuhne Date: Thu, 18 Jul 2024 10:51:07 -0700 Subject: [PATCH] Add parameter name for clarity on ComCtl controls --- src/thirtytwo/Controls/ButtonControl.cs | 2 +- src/thirtytwo/Controls/StaticControl.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,