Originally posted by: Hushpappy
How can i change the position of the band from left to the bottom of the browser?
thanks,
Originally posted by: Hamid Ghasempour
Hi all,
I create a horizontal explorer bar, and it can not be
launched in first time after registration.it is also
not exist in menu explorer bar.
but after restarting a system it can launched.
what is it problem?
thanx.
Originally posted by: Brett Robichaud
To save others the same hassle I've included my modified DllRegisterServer method below. Note the calls o SHDeleteKey(). Thanks go out to the author of this article, great work bringing this stuff together as a sample!
// clear the Internet Explorer Browser Helper Object cache
// register the ExplorerBar with the correct category
SetupToolbarButton();
CoUninitialize();
return SUCCEEDED(hr);
I struggled to get this sample to show up on my machine. After some research I came across a few KB articles that discuss specific IE problems that keep this explorer bar from showing up.
STDAPI DllRegisterServer(void)
{
// registers object, typelib and all interfaces in typelib
_Module.RegisterServer(TRUE);
// see Q247705 and Q214842 for details
SHDeleteKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Discardable\\PostSetup\\Component Categories\\{00021493-0000-0000-C000-000000000046}\\Enum");
SHDeleteKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Discardable\\PostSetup\\Component Categories\\{00021494-0000-0000-C000-000000000046}\\Enum");
SHDeleteKey(HKEY_CLASSES_ROOT, "Component Categories\\{00021492-0000-0000-C000-000000000046}\\Enum");
ICatRegister* pcr;
CoInitialize(NULL);
HRESULT hr = CoCreateInstance(CLSID_StdComponentCategoriesMgr,NULL,CLSCTX_INPROC_SERVER,IID_ICatRegister,(LPVOID*) &pcr);
if(SUCCEEDED(hr))
{
hr = pcr->RegisterClassImplCategories(CLSID_ExplorerBar, 1, &(CATID)CATID_InfoBand);
pcr->Release();
}
}
Originally posted by: Macroit
Some links I found that might be helpful.
Explorer Bar Style Guide
http://msdn.microsoft.com/workshop/browser/ext/overview/explorer_bar_style.asp
Creating Custom Explorer Bars, Tool Bands, and Desk Bands
http://msdn.microsoft.com/workshop/browser/ext/overview/Bands.asp
Originally posted by: Krishna kumar .T
How can i add a yahoo companion alike toolbar in ie using mfc programming in vc++?Is it possible?
can anyone reply?
Originally posted by: Bill Bell
BOOL CCHTM::ManageConnection(enum ConnectType eConnectType)
if ( spCPContainer != NULL )
hr = spCPContainer -> FindConnectionPoint ( DIID_DWebBrowserEvents2, &spConnectionPoint );
return ( SUCCEEDED ( hr ) );
(Actually, I have abbreviated and adapted the code slightly, so that the variable names are appropriate to Srivastava's code and to make it easier to comprehend.)
I would like to be able to simply insert this procedure ahead of Srivastava's "CCHTM::SetSite", so that his code will sink IE events. However, the compiler complains of "error C2594: 'type cast' : ambiguous conversions from 'class CCHTM *const ' to 'struct IDispatch *'", for the line containing 'this'.
Can someone offer a remedy, or suggest the source of my difficulty?
Thanks in any case.
Bill
The following code appears as part of a "Browser Helper Object" in Scott Roberts' book "Programming Internet Explorer 5".
{
HRESULT hr;
CComQIPtr<IConnectionPointContainer,
&IID_IConnectionPointContainer> spCPContainer ( s_pFrameWB );
{
CComPtr<IConnectionPoint> spConnectionPoint;
if ( SUCCEEDED ( hr ) )
if ( eConnectType == Advise )
hr = spConnectionPoint -> Advise ( ( IDispatch* ) this, &m_dwCookie );
else
hr = spConnectionPoint -> Unadvise ( m_dwCookie );
}
}
Originally posted by: Mike Godfrey
Is it possible to do this with VB?
Anyone have an example?
-Mike
Originally posted by: David Levy
i have a source code from MSDN (webband), but i have spent 3 days trying to implement event sinking between my webbrowser control in the bar and the main browser ....
_ASSERT(_pFrameWB);
if (_pFrameWB)
// Sink WebBrowser Events
thanks
David
hi
i am programming (trying!!) an explorer bar which has to communicate with the main browser object...
without success:!!! :((
(it craches my IE as soon as I launch the Advise function :
{
LPCONNECTIONPOINT pCP = NULL;
if (SUCCEEDED(GetConnectionPoint2(_pFrameWB, DIID_DWebBrowserEvents2, &pCP)))
{
pCP->Advise(static_cast<IDispatch*>(this), &_dwIECookie);
pCP->Release();
}
}
)
does anyone have a suggestion ?
any examples ?
Originally posted by: Domenico Bova
The example showed by your article and code is very interesting, but the HTML 'window.external' call doesn't function, giving a browser error.
I know that to implement DHTML extension you need to implement interface IDocHostUIHandler and receive call through invoke dispatcher after setting an IDispatch pointer in GetExternal method.
Can be this done in a different way ?
Domenico, Italy
ReplyOriginally posted by: srikanth
i want to use "browser helper object" to create something like Yahoo Companian...could any body help me??