how can i overwrite IDocHostUIHandler::ShowContextMenu()
-
hi i have a dialog based MFC application with a web browser control i have created it dynamicaly with CWnd wrapper class i am creating control like below and i want to control contex menu of the web browser
int CHolderWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;DWORD dwStyle = WS\_CHILD|WS\_VISIBLE; m\_pWebCtrl = new CWebBrowser2; if(!m\_pWebCtrl->Create(NULL,NULL,dwStyle,CRect(0,0,0,0),this,ID\_WEB\_WINDOW)) { return -1; } return 0;
}
after some search i found this link http://msdn.microsoft.com/en-us/library/aa770042(VS.85).aspx[^] but i do not know how to use it can you give me a clue about how to start this task thank you
-
hi i have a dialog based MFC application with a web browser control i have created it dynamicaly with CWnd wrapper class i am creating control like below and i want to control contex menu of the web browser
int CHolderWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;DWORD dwStyle = WS\_CHILD|WS\_VISIBLE; m\_pWebCtrl = new CWebBrowser2; if(!m\_pWebCtrl->Create(NULL,NULL,dwStyle,CRect(0,0,0,0),this,ID\_WEB\_WINDOW)) { return -1; } return 0;
}
after some search i found this link http://msdn.microsoft.com/en-us/library/aa770042(VS.85).aspx[^] but i do not know how to use it can you give me a clue about how to start this task thank you
I found the following a great help when I was looking at hosting the web browser control. http://www.codeproject.com/KB/COM/cwebpage.aspx[^] I think this is what you need to do: http://msdn.microsoft.com/en-us/library/bb508516(VS.85).aspx#doc_host_UI[^]
AxisFirst For Business