本文章主要用于做接口形式跨进程的使用。

额外提下:

发普通消息与此类同

1         public const int WM_SETTEXT = 12;
2         public const int CB_SETCURSEL = 0X014D;
3         [DllImport("user32.dll", EntryPoint = "SendMessage")]
4         public static extern int SendMessage(int hwnd, int wMsg, int wParam, string lParam);
5         //发送文本框
6         SendMessage(对方文本框句柄, WM_SETTEXT , 0, "测试");
7         //发送下拉框用于选择
8         SendMessage(对方下拉框句柄, CB_SETCURSEL, 0, "下拉框文本");
发送到对方指定控件

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
相关资源
相似解决方案