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