I want to open a webpage in folder view in my shell extension if click a folder name or file name in tree view,so I written code like this:
class CShellView : public IShellView, public IOleCommandTarget
{
....
}
CShellView::OnCreate
{
...m_pWebBrowser2.CoCreateInstance(CLSID_InternetExplorer, NULL)
....
}
if the default web brower is IE,the code is right. if the default web browser in not IE, it is wrong.
So , I use CLSID_Webbrowser to create object, but it cann't open a window and cause explorer error.
I try to create a dialog with webbrrowser control in it, but it still wrong.
Addition from OP's answer: My question is: How to show a web page in shell view of explorer?