修复编译错误:移除ToolStrip控件不存在的WrapContents属性

This commit is contained in:
zqm
2025-11-10 14:14:20 +08:00
parent f88111f8b5
commit 8987ca841a

View File

@@ -207,8 +207,6 @@ namespace JoyD.Windows.CS
this.toolStrip.AutoSize = true; this.toolStrip.AutoSize = true;
this.toolStrip.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
// 确保Flow布局时控件会换行
this.toolStrip.WrapContents = true;
this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20); this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.btnDrawRegion, this.btnDrawRegion,