比如我已经得到了QQ窗体中RICHEDIT的句柄,我可以用
sendmessage(ahwnd,WM_settext,0,integer(pchar('内容')))向里面输入内容,
如果我想得到该RICHEDIT中的内容!我用WM_GETTEXT,但是老是不成功!!!
请各位高手帮忙啊!!!
sendmessage(ahwnd,WM_settext,0,integer(pchar('内容')))向里面输入内容,
如果我想得到该RICHEDIT中的内容!我用WM_GETTEXT,但是老是不成功!!!
请各位高手帮忙啊!!!
OR/ WM_COPYDATA你需要去MSDN 看看WM_COPYDATA的详细要求。。
begin
getmem(s,100);
getwindowtext(handle,s,100);
showmessage(s);
freemem(s);
end;
比如EDIT中的内容!
The COPYDATASTRUCT structure contains data to be passed to another application by the WM_COPYDATA message. typedef struct tagCOPYDATASTRUCT { // cds
DWORD dwData;
DWORD cbData;
PVOID lpData;
} COPYDATASTRUCT;
Members
dwData
Specifies up to 32 bits of data to be passed to the receiving application.
cbData
Specifies the size, in bytes, of the data pointed to by the lpData member.
lpData
Pointer to data to be passed to the receiving application. This member can be NULL.
buffer应该为 Pointer to a COPYDATASTRUCT structure that contains the data to be passed. 你还要看QQ的版本...
比如EDIT中的内容!
================那你发edit 的句丙阿