引用 acmilan:SendMessage返回值是IntPtr,hwnd、wParam和lParam也都是IntPtr,只有uMsg是int。另外循环变量不要用i,可以用j或k,因为论坛有bug,方括号里的i会被当成ubb标记和谐掉。