2020-12-18 V2.1.2012.1801
*.[修复]修复RichTextBox2控件拖动滚动条,会导致界面变花的BUG。
This commit is contained in:
parent
b7075a3b55
commit
dccac0cf64
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +1,2 @@
|
|||
[Money_Op]
|
||||
hwnd=4533362
|
||||
hwnd=3151110
|
||||
|
|
BIN
Bin/Debug/CommonControls/.NET4 示例/UserDb/myDb.dat
Normal file
BIN
Bin/Debug/CommonControls/.NET4 示例/UserDb/myDb.dat
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
<root>
|
||||
<list id="LastUpdateTime" Value="2020/11/24 12:20:37" />
|
||||
<list id="UpdateAfterTime" Value="0" />
|
||||
<root>
|
||||
<list id="LastUpdateTime" Value="2020/12/18 11:36:12" />
|
||||
<list id="UpdateAfterTime" Value="0" />
|
||||
</root>
|
Binary file not shown.
|
@ -419,11 +419,38 @@
|
|||
使用代码编辑器修改此方法的内容。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:ryControls.Controls.RichTextBox2">
|
||||
<summary>
|
||||
增强富文本控件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.BeginUpdate">
|
||||
<summary>
|
||||
开始更新
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.EndUpdate">
|
||||
<summary>
|
||||
结束更新
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.#ctor">
|
||||
<summary>
|
||||
RichTextBox
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.OnHScroll(System.EventArgs)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="e"></param>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.OnVScroll(System.EventArgs)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="e"></param>
|
||||
</member>
|
||||
<member name="E:ryControls.Controls.RichTextBox2.OnMenuOpening">
|
||||
<summary>
|
||||
在自带菜单弹出前激发
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -419,11 +419,38 @@
|
|||
使用代码编辑器修改此方法的内容。
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:ryControls.Controls.RichTextBox2">
|
||||
<summary>
|
||||
增强富文本控件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.BeginUpdate">
|
||||
<summary>
|
||||
开始更新
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.EndUpdate">
|
||||
<summary>
|
||||
结束更新
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.#ctor">
|
||||
<summary>
|
||||
RichTextBox
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.OnHScroll(System.EventArgs)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="e"></param>
|
||||
</member>
|
||||
<member name="M:ryControls.Controls.RichTextBox2.OnVScroll(System.EventArgs)">
|
||||
<summary>
|
||||
|
||||
</summary>
|
||||
<param name="e"></param>
|
||||
</member>
|
||||
<member name="E:ryControls.Controls.RichTextBox2.OnMenuOpening">
|
||||
<summary>
|
||||
在自带菜单弹出前激发
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,9 @@
|
|||
### 2020-12-10更新
|
||||
### 2020-12-18更新
|
||||
------
|
||||
#### ryControls V2.1.2012.1801
|
||||
- *.[修复]修复RichTextBox2控件拖动滚动条,会导致界面变花的BUG。
|
||||
|
||||
### 2020-12-10更新
|
||||
------
|
||||
|
||||
|
||||
|
|
Binary file not shown.
2
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
2
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
|
@ -171,6 +171,6 @@
|
|||
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 关于ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 捐助ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 打开官网ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 打开官网ToolStripMenuItem;
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -4,13 +4,35 @@ using System.ComponentModel;
|
|||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ryControls.Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// 增强富文本控件
|
||||
/// </summary>
|
||||
public partial class RichTextBox2 : RichTextBox
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// 开始更新
|
||||
/// </summary>
|
||||
public void BeginUpdate()
|
||||
{
|
||||
SendMessage(this.Handle, WM_SETREDRAW, (IntPtr)0, IntPtr.Zero);
|
||||
}
|
||||
/// <summary>
|
||||
/// 结束更新
|
||||
/// </summary>
|
||||
public void EndUpdate()
|
||||
{
|
||||
SendMessage(this.Handle, WM_SETREDRAW, (IntPtr)1, IntPtr.Zero);
|
||||
this.Invalidate();
|
||||
}
|
||||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wp, IntPtr lp);
|
||||
private const int WM_SETREDRAW = 0x0b;
|
||||
/// <summary>
|
||||
/// RichTextBox
|
||||
/// </summary>
|
||||
|
@ -20,6 +42,24 @@ namespace ryControls.Controls
|
|||
this.DetectUrls = false;
|
||||
contextMenuStripRichText1.Opening += ContextMenuStripRichText1_Opening;
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnHScroll(EventArgs e)
|
||||
{
|
||||
base.Invalidate();
|
||||
base.OnHScroll(e);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnVScroll(EventArgs e)
|
||||
{
|
||||
base.Invalidate();
|
||||
base.OnVScroll(e);
|
||||
}
|
||||
/// <summary>
|
||||
/// 在自带菜单弹出前激发
|
||||
/// </summary>
|
||||
|
@ -125,6 +165,7 @@ namespace ryControls.Controls
|
|||
Graphics g = Graphics.FromHwnd(m.HWnd);
|
||||
g.DrawRectangle(pen, 0, 0, this.Width - 1, this.Height - 1);
|
||||
pen.Dispose();
|
||||
return;
|
||||
}
|
||||
if(!base.Focused && this.Text.Length==0)
|
||||
{
|
||||
|
|
|
@ -1,36 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ryControls")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("睿元网络工作室")]
|
||||
[assembly: AssemblyProduct("ryControls")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//将 ComVisible 设置为 false 将使此程序集中的类型
|
||||
//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("9eca3a84-8545-4c4d-84d6-d23e3bdf2d90")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.1.2011.2401")]
|
||||
[assembly: AssemblyFileVersion("2.1.2011.2401")]
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ryControls")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("睿元网络工作室")]
|
||||
[assembly: AssemblyProduct("ryControls")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//将 ComVisible 设置为 false 将使此程序集中的类型
|
||||
//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("9eca3a84-8545-4c4d-84d6-d23e3bdf2d90")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.1.2012.1801")]
|
||||
[assembly: AssemblyFileVersion("2.1.2012.1801")]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user