-
Notifications
You must be signed in to change notification settings - Fork 10
/
Program.cs
31 lines (28 loc) · 891 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace jjget
{
static class Program
{
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SendMessage(IntPtr hWnd,
int Msg, bool wParam, [MarshalAs(UnmanagedType.LPWStr)]string lParam);
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
}
public static int SetCueText(TextBox tbctl,string txt)
{
return SendMessage(tbctl.Handle, 0x1501, false, txt);
}
}
}