[DllImport("user32")]
static extern IntPtr SendMessage(IntPtr Handle, Int32 msg, IntPtr wParam, IntPtr lParam);
const Int32 LVM_FIRST = 0x1000; // List messages
const Int32 LVM_GETHEADER = LVM_FIRST + 31;
const Int32 HDM_FIRST = 0x1200; // Header messages
const Int32 HDM_SETIMAGELIST = HDM_FIRST + 8;
const Int32 HDM_GETIMAGELIST = HDM_FIRST + 9;
const Int32 HDM_GETITEM = HDM_FIRST + 11;
const Int32 HDM_SETITEM = HDM_FIRST + 12;
项目时,觉得自带菜单项选中颜色与项目不匹配,想要更改,多方查询总结出方法。
初始化时 将this.
menu
strip
1.render=new myselfrender();设置为自己重写的render类。
public class CustomProfessionalRenderer:Tool
Strip
ProfessionalRenderer