函数简介:

向指定窗口发送粘贴命令. 把剪贴板的内容发送到目标窗口

函数原型:

long SendPaste(hwnd)

参数定义:

hwnd
整形数: 指定的窗口句柄. 如果为0,则对当前激活的窗口发送.

返回值:

整形数:
0:
失败
1:
成功

示例:

 CString  hw;
 if (g_lw)
 {
  GetDlgItemText(EDIT2, hw);
  g_lw->SendPaste(StrToInt(hw));
  
 }