我对各种声明 SendMessage 感到困惑。我怎么知道哪一个是正确的?
在我的 c# winforms 应用程序(Windows 7)中,我使用以下内容;
public class NativeMethods
{
[DllImport("user32.dll")]
// Currently uses
public static extern int SendMessage(IntPtr hWnd, uint wMsg, int wParam, int lParam);
// Think I should probably be using
// public static extern int SendMessage(IntPtr hWnd, uint wMsg, UIntPtr wParam, IntPtr lParam);
}
但调用 SendMessage 的代码是
NativeMethods.SendMessage(this.tv.Handle, 277, 1, 0);
如何确定要使用哪些参数以便切换到另一个声明?