CAxWindow axWindow = GetDlgItem(IDC_EXPLORER2);
axWindow.EnableWindow(FALSE);
axWindow.MoveWindow(0, 0, WIDTH, HEIGHT);
CComPtr<IAxWinAmbientDispatch> spHost;
HRESULT hResult = wndIE.QueryHost(IID_IAxWinAmbientDispatch, (LPVOID*) &spHost);
if(SUCCEEDED(hResult) )
{
//禁止右键菜单
spHost->put_AllowContextMenu(VARIANT_FALSE);
//DOCHOSTUIFLAG_SCROLL_NO 没有滚动条
//DOCHOSTUIFLAG_DIALOG 像对话框一样,网页上的东西不可选择
//DOCHOSTUIFLAG_THEME XP风格
spHost->put_DocHostFlags(DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE | DOCHOSTUIFLAG_THEME | DOCHOSTUIFLAG_SCROLL_NO | DOCHOSTUIFLAG_DIALOG);
}
具体参数请参考:http://msdn.microsoft.com/en-us/library/aa753277(v=vs.85).aspx