C# 窗口消息传递
与MFC类似,通过SendMessage和窗口句柄实现消息之间的传递当然,这东西可以在线程和进程间通讯,实现线程消息的互相传递,文件系统升级卸载等功能作用空间using System.Runtime.InteropServices; // 导入user32.dll用到主窗体public partial class Form1 : Form{ …… 阅读全文
与MFC类似,通过SendMessage和窗口句柄实现消息之间的传递当然,这东西可以在线程和进程间通讯,实现线程消息的互相传递,文件系统升级卸载等功能作用空间using System.Runtime.InteropServices; // 导入user32.dll用到主窗体public partial class Form1 : Form{ …… 阅读全文
sFile = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Log\\" + sFile; sFolder = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Log\\"; if (!Directory.Exists(sFolder)) …… 阅读全文
int width = 50; int height = 50; var bitmap = new Bitmap(width, height, PixelFormat.Canonical); for (int y = 0; y < height; y++) for (int x = 0; x < width; x++) { int red = 0; i …… 阅读全文
本文转载自:http://www.cnblogs.com/lilin123/archive/2012/12/20/2826514.html根据上篇博文的反响我想向大家说明,因为本人时间有限加上才疏学浅,无法写出面面俱到的博文。我只是把自己经历的觉得有些意义的技术点分享出来,希望大家见谅。当然,我不会让大家走上歧途的。所有示例都是亲测。今天我想讨论一下事件与委托之间的联系。很多人 …… 阅读全文