using System.Runtime.InteropServices; using System.Diagnostics; [DllImport("User32.DLL")] public static extern int SendMessage(IntPtr hWnd, uint Msg, Read More
posted @ 2017-01-24 22:32
findumars
Views(2490)
Comments(0)
Diggs(0)
private void button1_Click(object sender, EventArgs e) { char[] ch = { 'z', 's', 'w', 'a', 'n', 'g', '路', '过' }; String s1 = new String(ch); Read More
posted @ 2017-01-24 22:31
findumars
Views(703)
Comments(0)
Diggs(0)
procedure TForm1.RichEdit1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); var vPoint: TPoint; begin if Button <> Read More
posted @ 2017-01-24 22:30
findumars
Views(1168)
Comments(0)
Diggs(0)
// 现象描述:// 用户点击按钮后程序开始繁忙工作,这时候用户不知道是否成功,就继续点几次// 采用Enalbe = false ... = true的方式发现还会触发点击,分析原因如下// 当程序繁忙的时候消息被堵住了// 所以点击消息还会被处理// 将队列里的消息处理掉后才打开按钮的Enabl Read More
posted @ 2017-01-24 22:28
findumars
Views(396)
Comments(0)
Diggs(0)
using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct USER_INFO_0 { public string Usern Read More
posted @ 2017-01-24 22:27
findumars
Views(1330)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号