当 WIN32 文档说这样的话:
wParam
The low-order word specifies the edit control identifier.
The high-order word specifies the notification message.
构建 wParam 的好方法是什么?
最佳答案
public static ushort LowWord(uint val)
{
return (ushort)val;
}
public static ushort HighWord(uint val)
{
return (ushort)(val >> 16);
}
public static uint BuildWParam(ushort low, ushort high)
{
return ((uint)high << 16) | (uint)low;
}
关于c# - 在 C# 中构建 wParam 或 lParam 的好方法是什么? (比轮类运算符(operator)更友好的东西吗?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/202330/