Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当在 .NET 中覆盖以下方法时,我似乎在 32 位和 64 位操作系统中收到不同的消息:es。这是真的吗?
protected override void WndProc(ref Message m)
我想了解以下内容:private const int WM_LBUTTONDBLCLK = 0x0203;但WM_LBUTTONBLCLK在我的 Windows 2003 64 位安装中似乎有另一个“Id”,而不是在我的 Windows XP 32 位上。
private const int WM_LBUTTONDBLCLK = 0x0203;
WM_LBUTTONBLCLK
建议?
那不可能,消息标识符没有改变。如果您记录了您收到的其他消息或您正在挂钩的窗口或控件类型,这将有助于我们为您提供帮助。Message 中与 WM_LBUTTONDBLCLK 相关的唯一区别是 WParam 和 LParam 字段现在是 64 位而不是 32 位。虽然很难弄错,但您肯定使用的是 ToInt32() 方法。