如何查SendMessage按键消息的键值?
1、发送鼠标消息如下:
private const int WM_LBUTTONDOWN = 513; // 0x0201
private const int WM_LBUTTONUP = 514; // 0x0202
[System.Runtime.InteropServices.DllImport("user32.dll")]
static extern bool SendMessage(IntPtr hWnd, Int32 msg, Int32 wParam, Int32 lParam);
private void SetNoCurrentCell()
{
//click on top left corner of the grid
SendMessage( this.dataEditGrid.Handle, WM_LBUTTONDOWN, 0, 0);
SendMessage( this.dataEditGrid.Handle, WM_LBUTTONUP, 0, 0);
}
2、问题
我想发送回车键,怎么写?
在帮助里找windows message number找不到,能否给个帮助地址?
thanks!!