usercontrol1.cs
来自「语音视频功能 里面实现了基本的QQ与语音对话」· CS 代码 · 共 80 行
CS
80 行
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 + =
减小字号Ctrl + -
显示快捷键?