C#的仿vs2010界面toolbox抽屉控件 带源码
C#的仿vs2010界面toolbox抽屉控件 带源码注意:
要往toolbox中加group,点扩展属性的items添加,group中添加item也同样,不能拖个group进toolbox,这样是无效的...
[IMG]http://pic.[/IMG]
[ 本帖最后由 dingkai19830 于 2009-11-14 16:57 编辑 ]
2009-11-14 09:54
2009-11-14 16:15
2009-11-16 08:30
,做这个东西用到了什么知识?
2009-12-01 08:21
程序代码:protected override void OnSizeChanged(EventArgs e)
{
SendMessage(this.Handle, 11, (IntPtr)0, (IntPtr)0);
base.OnSizeChanged(e);
if (VScroll) {
this.ResetGroupWidth(-21);
}
else {
this.ResetGroupWidth(-4);
}
this.HScroll = false;
SendMessage(this.Handle, 11, (IntPtr)1, (IntPtr)0);
this.Refresh();
}[DllImport("user32.dll", EntryPoint = "SendMessageA")]
public static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);
2009-12-02 09:02