CustomControl1.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 小说
{
public partial class CustomControl1 : RichTextBox
{
private const int WM_SETFOCUS = 0x7;//焦点
private const int WM_LBUTTONDOWN = 0x201;//左按钮按下
private const int WM_LBUTTONUP = 0x202;//左按钮抬起
private const int WM_LBUTTONDBLCLK = 0x203;//
private const int WM_RBUTTONDOWN = 0x204;
private const int WM_RBUTTONUP = 0x205;
private const int WM_RBUTTONDBLCLK = 0x206;
private const int WM_KEYDOWN = 0x0100;
private const int WM_KEYUP = 0x0101;
public CustomControl1()
{
InitializeComponent();
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
}
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_SETFOCUS
|| m.Msg == WM_LBUTTONDOWN
|| m.Msg == WM_LBUTTONUP
|| m.Msg == WM_KEYDOWN
|| m.Msg == WM_KEYUP )
{
/* || m.Msg == WM_LBUTTONDOWN
|| m.Msg == WM_LBUTTONUP
|| m.Msg == WM_LBUTTONDBLCLK
|| m.Msg == WM_RBUTTONDOWN
|| m.Msg == WM_RBUTTONUP
|| m.Msg == WM_RBUTTONDBLCLK*/
return;
}
base.WndProc(ref m);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
