public static int SetWindowThemeNonClientAttributes(IntPtr hwnd, WindowThemeNonClientAttributes mask, WindowThemeNonClientAttributes attributes) { var opt = new WTA_OPTIONS { Flags = attributes, Mask = mask }; return SetWindowThemeAttribute(hwnd, WindowThemeAttributeType.WTA_NONCLIENT, ref opt, (uint)Marshal.SizeOf(typeof(WTA_OPTIONS))); }
public static int SetWindowThemeNonClientAttributes(IntPtr hwnd, WindowThemeNonClientAttributes mask, WindowThemeNonClientAttributes attributes) { var opt = new WTA_OPTIONS { Flags = attributes, Mask = mask }; return(SetWindowThemeAttribute(hwnd, WindowThemeAttributeType.WTA_NONCLIENT, ref opt, (uint)Marshal.SizeOf(typeof(WTA_OPTIONS)))); }
public static extern int SetWindowThemeAttribute(IntPtr hWnd, WindowThemeAttributeType wtype, ref WTA_OPTIONS attributes, uint size);