0
を探し、現在、私のリストビューは次のようになりますか?Windows 7はネイティブの.NETのListView
を探し、現在、私のリストビューは次のようになりますか?Windows 7はネイティブの.NETのListView
これは、ここに答えた:How to get Windows native look for the .NET TreeView?
与えられた解決策は、ListViewコントロールとTreeViewコントロールのための両方のために動作します。
public class NativeListView : System.Windows.Forms.ListView
{
[DllImport("uxtheme.dll", CharSet = CharSet.Unicode)]
private extern static int SetWindowTheme(IntPtr hWnd, string pszSubAppName,
string pszSubIdList);
protected override void CreateHandle()
{
base.CreateHandle();
SetWindowTheme(this.Handle, "explorer", null);
}
}