CMyDialog browserHome;  AtlAxWinInit();  m_hWndClient = browserHome.Create(
m_hWndClient = initContext->browserObject->Create(
HRESULT InitIEStuff (WebShellInitContext * initContext){	HRESULT hr;    HWND m_hWndClient;    RECT rect;	HWND localParent = initContext->parentHWnd;	HWND localChild = initContext->browserHost;   	HRESULT hRes = CoInitializeEx(NULL,  COINIT_APARTMENTTHREADED);	ATLASSERT(SUCCEEDED(hRes));  /*if (_WIN32_IE >= 0x0300)	INITCOMMONCONTROLSEX iccx;	iccx.dwSize = sizeof(iccx);	iccx.dwICC = ICC_COOL_CLASSES | ICC_BAR_CLASSES;	BOOL bRet = ::InitCommonControlsEx(&iccx);	bRet;	ATLASSERT(bRet);#else*/  ::InitCommonControls();//#endif    GetClientRect(initContext->parentHWnd, &rect);       HINSTANCE newInst = GetModuleHandleA(NULL);	hRes = _Module.Init(NULL, newInst);	ATLASSERT(SUCCEEDED(hRes));  	CMyDialog browserHome;		AtlAxWinInit();	m_hWndClient = browserHome.Create(		initContext->parentHWnd, 		rect,		_T("about:blank"), 		WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | 			WS_VSCROLL | WS_HSCROLL, 		WS_EX_CLIENTEDGE, 	    ID_WEBBROWSER);	hr = browserHome.QueryControl(&browserHome.m_pWB);	initContext->m_pWB = browserHome.m_pWB;  (initContext->browserHost) = m_hWndClient;	if FAILED(hr)        {           ATLTRACE(_T("Couldn't retrieve webbrowser"));           return (-1);        }  if SUCCEEDED(hr)        {	     	     ATLTRACE(_T("Browser succesfully retrieved"));                    }//	CComPtr<IUnknown> spUnk;  //Unk Ptr will be used to sink the map//    hr = browserHome.QueryControl(&spUnk);  	//hr = browserHome.DispEventAdvise(spUnk);	if FAILED(hr)	{		ATLTRACE(_T("Couldn't establish connection points"));		return -1;	}  processEventLoop(initContext); 	return 0;}