Iexplorer
-
If I have a web page loaded inside of a mfc program, how can i make one of the hyper links, in the page, run a dialog :) Caleb
-
If I have a web page loaded inside of a mfc program, how can i make one of the hyper links, in the page, run a dialog :) Caleb
One way would be to trick it. Set the hyperlink in question to some value that has meaning to you. THen override the OnBeforeNavigate method of the web browser control. Parse the URL and redirect it to open a dlg. a href="opendlg" (would be nice to have
tag support)
OnBeforeNavigate(LPCTSTR lpszURL, ...)
{
if( !strcmp(lpszURL, "opendlg" )
dgl.DoModal()
}I've used this type of trick before. It might not be the best but it gets you there without having to implement IDocHostHandler and such. You could also do this with script on the page itself.