mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Changed text selection behavior
This commit is contained in:
parent
29a1767a41
commit
25545a8de7
1 changed files with 10 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue