diff --git a/Crypto Notepad/ExRichTextBox.cs b/Crypto Notepad/ExRichTextBox.cs index 9f4aed2..4f95ed4 100644 --- a/Crypto Notepad/ExRichTextBox.cs +++ b/Crypto Notepad/ExRichTextBox.cs @@ -32,6 +32,7 @@ protected override void WndProc(ref Message m) } return; } + base.WndProc(ref m); } @@ -43,23 +44,7 @@ protected override void OnHandleCreated(EventArgs e) AutoWordSelection = true; AutoWordSelection = false; } - } - - public event EventHandler CursorPositionChanged; - - protected virtual void OnCursorPositionChanged(EventArgs e) - { - if (CursorPositionChanged != null) - CursorPositionChanged(this, e); - } - - protected override void OnSelectionChanged(EventArgs e) - { - if (SelectionLength == 0) - OnCursorPositionChanged(e); - else - base.OnSelectionChanged(e); - } + } } public static class RichTextBoxPadding {