下面的代码运行通过.<br>// 将edit中的文字粘贴到combobox中<br>// 测试SendMessage(ComboBox1.Handle, WM_paste, 0, 0);<br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> edit1.SetFocus;<br> sendmessage(edit1.haNdle,WM_CUT,0,0);<br> combobox1.SelectAll;<br> SendMessage(ComboBox1.Handle, WM_paste, 0, 0);<br>end;<br><br>//将combobox中的文字粘贴到edit中<br>// SendMessage(Combobox1.Handle, WM_CUT, 0,0);<br>procedure TForm1.Button2Click(Sender: TObject);<br>begin<br> combobox1.SelectAll;<br> SendMessage(Combobox1.Handle, WM_CUT, 0,0);<br> edit1.SetFocus;<br> SendMessage(Edit1.Handle, WM_PASTE, 0, 0);<br>end;<br><br>//清除combobox的文字<br>//测试 SendMessage(Combobox1.Handle, WM_CLEAR, 0,0);<br>procedure TForm1.Button3Click(Sender: TObject);<br>begin<br> combobox1.SelectAll;<br> SendMessage(Combobox1.Handle, WM_CLEAR, 0,0);<br>end;