32位数高位与低位的拆分与合并
1、利用LOWORD()和HIWORD()获取它的高16位数据和低16位数据:
int nLow = LOWORD(lParam);
int nHig = HIWORD(lParam);
2、利用MAKELONG()宏来将两个16位数合并成32位数:
WORD one = 200;
WORD two = 300;
int nRet = MAKELONG(one,two);