mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2025-08-16 21:31:47 +02:00
.github
BrotliBuilder
Blocks
Components
Dialogs
Properties
Resources
State
Utils
Compat
AsyncWorker.cs
Colors.cs
ControlExtensions.cs
NativeMethods.cs
WinMerge.cs
BrotliBuilder.csproj
FormMain.Designer.cs
FormMain.Menu.BrotliImpl.cs
FormMain.Menu.File.cs
FormMain.Menu.Tools.cs
FormMain.Menu.View.cs
FormMain.cs
FormMain.resx
Program.cs
BrotliCalc
BrotliImpl
BrotliLib
Paper
UnitTests
.gitignore
BrotliBuilder.sln
LICENSE
README.md
18 lines
548 B
C#
18 lines
548 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Windows.Forms;
|
|
|
|
namespace BrotliBuilder.Utils{
|
|
static class NativeMethods{
|
|
public const int EM_SETTEXTMODE = 0x459;
|
|
public const int TM_PLAINTEXT = 1;
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern IntPtr SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam);
|
|
|
|
public static void SetPlainTextMode(this RichTextBox tb){
|
|
SendMessage(tb.Handle, EM_SETTEXTMODE, (IntPtr)TM_PLAINTEXT, IntPtr.Zero);
|
|
}
|
|
}
|
|
}
|