C#高低位
在c的写法是这样
xPos = LOWORD(lParam); // horizontal position of cursor
yPos = HIWORD(lParam); // vertical position of cursor
c#中是这样
int xPos = lParam.ToInt32() & 0x00001111;
int yPos = (lParam.ToInt32() & 0x11110000) >> 16;
posted on 2012-05-14 17:02 刺客mrchenzh 阅读(400) 评论(0) 编辑 收藏 举报