Commit add05d52 HZH

解决文本框水印文字问题

1 个父辈 26aec14f
......@@ -369,15 +369,15 @@ namespace HZH_Controls.Controls
/// 处理 Windows 消息。
/// </summary>
/// <param name="m">一个 Windows 消息对象。</param>
//protected override void WndProc(ref Message m)
//{
// base.WndProc(ref m);
// if (m.Msg == 15 || m.Msg == 7 || m.Msg == 8)
// {
// //this.OnPaint(null);
// Invalidate();
// }
//}
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (m.Msg == 15 || m.Msg == 7 || m.Msg == 8)
{
this.OnPaint(null);
//Invalidate();
}
}
/// <summary>
/// Handles the <see cref="E:TextChanged" /> event.
......
......@@ -29,16 +29,31 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.ucMindMappingPanel1 = new HZH_Controls.Controls.UCMindMappingPanel();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.aaaaaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ucMindMappingPanel1 = new HZH_Controls.Controls.UCMindMappingPanel();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.aaaaaToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(149, 26);
//
// aaaaaToolStripMenuItem
//
this.aaaaaToolStripMenuItem.Name = "aaaaaToolStripMenuItem";
this.aaaaaToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.aaaaaToolStripMenuItem.Text = "更改随机文本";
this.aaaaaToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// ucMindMappingPanel1
//
this.ucMindMappingPanel1.AutoScroll = true;
this.ucMindMappingPanel1.BackColor = System.Drawing.Color.White;
this.ucMindMappingPanel1.ContextMenuStrip = this.contextMenuStrip1;
this.ucMindMappingPanel1.DataSource = null;
this.ucMindMappingPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucMindMappingPanel1.ItemBackcolor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
......@@ -49,20 +64,6 @@
this.ucMindMappingPanel1.Size = new System.Drawing.Size(707, 581);
this.ucMindMappingPanel1.TabIndex = 1;
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.aaaaaToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(153, 48);
//
// aaaaaToolStripMenuItem
//
this.aaaaaToolStripMenuItem.Name = "aaaaaToolStripMenuItem";
this.aaaaaToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.aaaaaToolStripMenuItem.Text = "更改随机文本";
this.aaaaaToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// UCTestMindMapping
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!