Winify – Blame information for rev 8
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Runtime.InteropServices; |
||
3 | using System.Windows.Forms; |
||
4 | |||
8 | office | 5 | namespace Winify.Utilities.Components |
1 | office | 6 | { |
7 | public partial class ReadOnlyRichTextBox : RichTextBox |
||
8 | { |
||
9 | #region Constructors, Destructors and Finalizers |
||
10 | |||
11 | public ReadOnlyRichTextBox() |
||
12 | { |
||
13 | ReadOnly = true; |
||
14 | } |
||
15 | |||
16 | #endregion |
||
17 | |||
18 | #region Private Overrides |
||
19 | |||
20 | protected override void WndProc(ref Message m) |
||
21 | { |
||
22 | base.WndProc(ref m); |
||
23 | HideCaret(Handle); |
||
24 | } |
||
25 | |||
26 | #endregion |
||
27 | |||
28 | #region Private Methods |
||
29 | |||
30 | [DllImport("user32.dll")] |
||
31 | private static extern bool HideCaret(IntPtr hWnd); |
||
32 | |||
33 | #endregion |
||
34 | } |
||
35 | } |