EM_STREAMIN
The EM_STREAMIN message replaces the contents of a rich edit control with a stream of data provided by an application-defined EditStreamCallback callback function.EM_STREAMIN
wParam = (WPARAM) (UINT) uFormat;
lParam = (LPARAM) (EDITSTREAM FAR *) lpStream;
The EM_STREAMIN message replaces the contents of a rich edit control with a stream of data provided by an application-defined EditStreamCallback callback function.EM_STREAMIN
wParam = (WPARAM) (UINT) uFormat;
lParam = (LPARAM) (EDITSTREAM FAR *) lpStream;
TCHAR string = "abcd";
SendMessage(hRichEdit, WM_SETTEXT, sizeof(string), (LPARAM)string);不行啊,呵呵,和UNICODE有关吗?我这样写有什么问题?
干脆用WCHAR吧
可以的
TCHAR szMsg[]="Abcd";
::SendMessage(hEditCtrl,WM_SETTEXT,0,(LPARAM)szMsg);
谢谢,我测试的是EDIT,我回去试试。