:: SendMessage( h ,WM_IME_CHAR ,( WPARAM)(0xBABA),0);
//发个汉字
:: SendMessage( h ,WM_CHAR ,( WPARAM )('A'),0);
// 发送字母.
也可以用剪贴板:
if (!OpenClipboard (NULL))
{
return -1;
}
// Remove the current Clipboard contents
if(!EmptyClipboard ())
{
return -2;
}
// Get the currently selected data, hData handle to
// global memory of data
CString str = _T( "teststr");
size_t cbStr = (str. GetLength() + 1) * sizeof (TCHA......
阅读全文