我想用自己的程序在qq登陆框的密码框中自动填入密码
在往帐号框中发消息能改写帐号,但是密码框中就是不能改写内容
我用的是qq2005
(先开个qq登陆框,再用自己的程序)void CGggDlg::OnButton1() 
{
// TODO: Add your control notification handler code here
//ShellExecute(NULL, "open", "D:\\Program Files\\Tencent\\QQ2005\\CoralQQ.exe", NULL, NULL, SW_SHOWNORMAL);
HWND hwnd=::FindWindow("#32770",NULL);
HWND hedit=::FindWindowEx(hwnd,NULL,"Edit",NULL);//qq密码框的句柄

::SendMessage(hedit,WM_SETFOCUS,NULL,NULL); 
CString Password="123456789";
char *ee=Password.GetBuffer(Password.GetLength());
::SendMessage(hedit,WM_SETTEXT,11,(LPARAM)ee);

}