From 55bab3873eea930584bd25a125e552d9c27c2e31 Mon Sep 17 00:00:00 2001 From: David Hall Date: Sat, 8 Oct 2022 20:38:18 -0600 Subject: [PATCH] Fixed TBBUTTONINFO.fsStyle set failure #326 --- PInvoke/ComCtl32/CommCtrl.Toolbar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/ComCtl32/CommCtrl.Toolbar.cs b/PInvoke/ComCtl32/CommCtrl.Toolbar.cs index fa9e6a40..48f36746 100644 --- a/PInvoke/ComCtl32/CommCtrl.Toolbar.cs +++ b/PInvoke/ComCtl32/CommCtrl.Toolbar.cs @@ -3777,7 +3777,7 @@ namespace Vanara.PInvoke /// Type: BYTE /// Style flags of the button. This can be one or more of the values listed in Toolbar Control and Button Styles. /// - public ToolbarStyle fsStyle { get => (ToolbarStyle)_fsStyle; set => _fsStyle = (byte)((ushort)fsStyle & 0x00FF); } + public ToolbarStyle fsStyle { get => (ToolbarStyle)_fsStyle; set => _fsStyle = (byte)((ushort)value & 0x00FF); } private byte _fsStyle;