IDC_EDIT1是密码输入窗口。
HWND hwnd;
GetDlgItem(IDC_EDIT1,&hwnd); LPCTSTR l = new TCHAR[50]; ZeroMemory((void*)l,50); ::SendMessage(hwnd,WM_GETTEXT,50,(LPARAM)l); MessageBox(l);
l为密码
本文共 248 字,大约阅读时间需要 1 分钟。
IDC_EDIT1是密码输入窗口。
HWND hwnd;
GetDlgItem(IDC_EDIT1,&hwnd); LPCTSTR l = new TCHAR[50]; ZeroMemory((void*)l,50); ::SendMessage(hwnd,WM_GETTEXT,50,(LPARAM)l); MessageBox(l);
l为密码
转载于:https://www.cnblogs.com/longcheng2012/archive/2012/11/01/2750037.html