如何在IE浏览器中获取地址栏? [英] How to get the address bar in IE Browser?
本文介绍了如何在IE浏览器中获取地址栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我打开网页浏览器。并在地址栏中输入www.google.com。
我认为在窗口中获取地址栏。 (MFC)
谢谢。
Hi guys!
I Open a web browser. and input "www.google.com" in the address bar.
I think get address bar in the window. (MFC)
thanks.
推荐答案
这应该从这里开始:在Internet Explorer的地址栏中操作按钮 [ ^ ]
This should do it from here:Manipulating Buttons in Internet Explorer's Address Bar[^]
BOOL FindAddressBar(
HWND mainWnd, HWND* addressBarWnd, HWND* cmdTargetWnd)
{
mainWnd = ::FindWindowEx( mainWnd, NULL, TEXT( "WorkerW" ), NULL );
mainWnd = ::FindWindowEx( mainWnd, NULL, TEXT( "ReBarWindow32" ), NULL );
*cmdTargetWnd = ::FindWindowEx
mainWnd, NULL, TEXT( "Address Band Root" ), NULL );
if( *cmdTargetWnd )
*addressBarWnd = ::FindWindowEx(
*cmdTargetWnd, NULL, TEXT( "ToolbarWindow32" ), L"Page Control" );
return cmdTargetWnd != NULL;
}
这篇关于如何在IE浏览器中获取地址栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文