📄 usercontrol1.cs
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace gowk
{
/// <summary>
/// UserControl1 的摘要说明。
/// </summary>
public class UserControl1 : RichTextBox
{
public UserControl1()
{
// this.SetStyle(ControlStyles.SupportsTransparentBackColor,true);
// this.SetStyle(ControlStyles.UserPaint,true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint,true);
this.SetStyle(ControlStyles.DoubleBuffer,true);
this.ScrollBars=System.Windows.Forms.RichTextBoxScrollBars.None;
}
override protected CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown (e);
// gowk.common.API.SendMessage(this.Handle,gowk.common.API.WM_NOTIFY,0,0);
}
/* protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown (e);
this.Rp();
}
protected override void OnKeyUp(KeyEventArgs e)
{
base.OnKeyUp (e);
this.Rp();
}
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown (e);
this.Rp();
}
protected override void OnMouseHover(EventArgs e)
{
base.OnMouseHover (e);
this.Rp();
}
protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter (e);
this.Rp();
}
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove (e);
this.Rp();
}
protected override void OnMouseWheel(MouseEventArgs e)
{
base.OnMouseWheel (e);
this.Rp();
}
*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -