摘要: 在我们的程序和WindowAPI打交道时,特别是在处理鼠标键盘消息时,LPARAM 和 WPARAM 参数会经常出现。 在Win32 API中,LPARAM 和 WPARAM 都是32位,所以在数据类型上没有什么本质的区别。 但是对于不同的WinAPI,LPARAM 与 WPARAM 参数被承载者不 阅读全文
posted @ 2019-11-10 17:33 德丽莎·阿波卡利斯 阅读(360) 评论(0) 推荐(0) 编辑
摘要: [DllImport("User32.dll")] private static extern bool GetCaretPos(out Point p); 1 阅读全文
posted @ 2019-11-10 15:44 德丽莎·阿波卡利斯 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/zhouyz/articles/2249623.html using System; using System.Drawing; using System.Collections; using System.ComponentModel; u 阅读全文
posted @ 2019-11-10 12:03 德丽莎·阿波卡利斯 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 不要以为下面的东西只有C++中才会用到哦! 消息,就是指Windows发出的一个通知,告诉应用程序某个事情发生了。例如,单击鼠标、改变窗口尺寸、按下键盘上的一个键都会使Windows发送一个消息给应用程序。 消息本身是作为一个记录传递给应用程序的,这个记录中包含了消息的类型以及其他信息。例如,对于单 阅读全文
posted @ 2019-11-10 12:00 德丽莎·阿波卡利斯 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 本文链接:https://blog.csdn.net/wletv/article/details/6874530 int lPort; unsafe { // Assign the address of number to a pointer: // int* p= &lPort; fixed (i 阅读全文
posted @ 2019-11-10 11:42 德丽莎·阿波卡利斯 阅读(634) 评论(0) 推荐(0) 编辑