Changed text selection behavior

This commit is contained in:
Sigmanor 2017-02-05 22:30:06 +02:00
parent 29a1767a41
commit 25545a8de7

View file

@ -43,6 +43,16 @@ public CustomRichTextBox()
//and this one issues the control to perform scrolling
private const int WM_VSCROLL = 0x115;
protected override void OnHandleCreated(EventArgs e)
{
base.OnHandleCreated(e);
if (!base.AutoWordSelection)
{
base.AutoWordSelection = true;
base.AutoWordSelection = false;
}
}
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_MOUSEWHEEL)