}
} initContext->canForward = initContext->browserObject->GetForwardState(); initContext->canBack = initContext->browserObject->GetBackState();
int processEventLoop(WebShellInitContext * initContext){	HRESULT hr;    MSG msg;        if (::PeekMessage(&msg, nsnull, 0, 0, PM_NOREMOVE)) {        if (::GetMessage(&msg, nsnull, 0, 0)) {						switch (msg.message)			{			case WM_REFRESH:				hr = (initContext->m_pWB)->Refresh();				break;			case WM_NAVIGATE: 				hr = (initContext->m_pWB)->Navigate(CComBSTR(initContext->wcharURL), NULL, NULL, NULL, NULL);                free((void *) initContext->wcharURL);                initContext->wcharURL = nsnull;				break;			case WM_BACK:				hr = (initContext->m_pWB)->GoBack();				break;			case WM_FORWARD:				hr = (initContext->m_pWB)->GoForward();				break;			case WM_STOP:				hr = (initContext->m_pWB)->Stop();				break;			case WM_RESIZE :				hr = MoveWindow(initContext->browserHost, initContext->x, initContext->y, initContext->w, initContext->h, TRUE);				break;			case WM_BIGTEST:				hr = ::MessageBox(initContext->browserHost, "command state changed", "youknow", MB_OK);				break;						}			::TranslateMessage(&msg);            ::DispatchMessage(&msg);            }        }	    return 1;}