SetWindowTheme() private méthode

private SetWindowTheme ( IntPtr hWnd, string appName, string partList ) : int
hWnd System.IntPtr
appName string
partList string
Résultat int
Exemple #1
0
 public static void SetVistaExplorerStyle(this ListView lv)
 {
     if (IsWindowsVistaOrLater)
     {
         NativeApi.SetWindowTheme(lv.Handle, NativeApi.UX_EXPLORER, null);
     }
 }
Exemple #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;
     }
 }