Example #1
0
 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)));
 }
Example #2
0
        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))));
        }
Example #3
0
 public static extern int SetWindowThemeAttribute(IntPtr hWnd,
     WindowThemeAttributeType wtype, ref WTA_OPTIONS attributes, uint size);
Example #4
0
 public static extern int SetWindowThemeAttribute(IntPtr hWnd,
                                                  WindowThemeAttributeType wtype, ref WTA_OPTIONS attributes, uint size);