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="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.
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>
|
||||
|
@ -21,6 +43,24 @@ namespace ryControls.Controls
|
|||
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>
|
||||
[Description("在自带菜单弹出前激发")]
|
||||
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.1.2011.2401")]
|
||||
[assembly: AssemblyFileVersion("2.1.2011.2401")]
|
||||
[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