CTextBox: Fix unselectable textbox of one line

This commit is contained in:
2017-02-05 02:24:48 +01:00
parent 11dab2e63e
commit 6bbfbc2fd4
2 changed files with 3 additions and 3 deletions

View File

@@ -9,17 +9,16 @@ namespace CsvView
{
public CTextBox()
{
Multiline = true;
WordWrap = false;
ScrollBars = ScrollBars.Horizontal;
Font = new Font("Courier New", 9, FontStyle.Regular, GraphicsUnit.Point, 0);
}
[DllImport("user32.dll")]
private static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wp, IntPtr lp);
private const int WM_MOUSEWHEEL = 0x20a;
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_MOUSEWHEEL)