SetWindowTheme() private method

private SetWindowTheme ( IntPtr hWnd, string appName, string partList ) : int
hWnd System.IntPtr
appName string
partList string
return int
Beispiel #1
0
 public static void SetVistaExplorerStyle(this ListView lv)
 {
     if (IsWindowsVistaOrLater)
     {
         NativeApi.SetWindowTheme(lv.Handle, NativeApi.UX_EXPLORER, null);
     }
 }
Beispiel #2
0
 public static void SetVistaExplorerStyle(this TreeView tv, bool fadeoutExpandos, bool showTreeLines)
 {
     if (IsWindowsVistaOrLater)
     {
         NativeApi.SetWindowTheme(tv.Handle, NativeApi.UX_EXPLORER, null);
         if (fadeoutExpandos)
         {
             NativeApi.SendMessage(tv.Handle, NativeApi.TVM_SETEXTENDEDSTYLE, 0, NativeApi.TVS_EX_FADEINOUTEXPANDOS);
         }
         tv.ShowLines = showTreeLines;
     }
 }