private SetWindowTheme ( |
||
hWnd | ||
appName | string | |
partList | string | |
Результат | int |
public static void SetVistaExplorerStyle(this ListView lv) { if (IsWindowsVistaOrLater) { NativeApi.SetWindowTheme(lv.Handle, NativeApi.UX_EXPLORER, null); } }
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; } }