C#获取当前浏览器的网页
1个回答
展开全部
HWNDhIE=NULL,hWorker=NULL,hBar=NULL,hComboBox=NULL;charstrAdd[256]={0};hIE=FindWindow(_T("IEFrame"),NULL);if(hIE)hWorker=FindWindowEx(hIE,0,_T("WorkerW"),NULL);if(hWorker)hBar=FindWindowEx(hWorker,0,_T("ReBarWindow32"),NULL);if(hBar){hComboBox=FindWindowEx(hBar,0,_T("ComboBoxEx32"),NULL);SendMessage(hComboBox,WM_GETTEXT,255,(LPARAM)strAdd);//这里的strAdd即是}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询