5条回答 默认 最新
- threenewbee 2015-07-22 05:11关注
static class NativeMethods { public const int WM_CREATE = 0x1; [DllImport("uxtheme.dll", CharSet = CharSet.Unicode)] public extern static int SetWindowTheme( IntPtr hWnd, string pszSubAppName, string pszSubIdList); } class MyListView : System.Windows.Forms.ListView { protected override void WndProc(ref Message m) { if (m.Msg == Win.WM_CREATE) { NativeMethods.SetWindowTheme(this.Handle, "Explorer", null); } base.WndProc(ref m); } }
用这个MyListView
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报