This commit is contained in:
45
PROMS/Volian.Controls.Library/RichTextBox41.cs
Normal file
45
PROMS/Volian.Controls.Library/RichTextBox41.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Drawing;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
public partial class RichTextBox41 : RichTextBox
|
||||
{
|
||||
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
|
||||
static extern IntPtr LoadLibrary(string lpFileName);
|
||||
|
||||
protected override CreateParams CreateParams
|
||||
{
|
||||
get
|
||||
{
|
||||
CreateParams prams = base.CreateParams;
|
||||
if (LoadLibrary("msftedit.dll") != IntPtr.Zero)
|
||||
{
|
||||
//prams.ExStyle |= 0x020; // transparent
|
||||
prams.ClassName = "RICHEDIT50W";
|
||||
}
|
||||
return prams;
|
||||
}
|
||||
}
|
||||
|
||||
public RichTextBox41()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public RichTextBox41(IContainer container)
|
||||
{
|
||||
container.Add(this);
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user