Originally posted by: nhk
In a web page which call the javascript function alert(), nothing appears. Any ideas ?
ReplyOriginally posted by: Gustavo
Hi,
Somebody knows how disable the sound that make the Explorer Control when finish a navigation. I would like disable only for my application while the Internet Explorer mantains this sound. Are there any option in the IDocHostUIHandler interface for this behavior?
Thanks
Gustavo.
Originally posted by: Johnny Kim
(I use VC6++(SP4) , Windows2000pro, IE5.0)
I Complied this code in Debug mode, then I run complied
program and make new windows(Ctrl+n) two or more.
btw When ChildWindow is destroyed, Some Error occur
in this MFC code.
Unhandled Exception MFC42D.DLL;(0xC0000005)
BOOL CWnd::IsDialogMessage(LPMSG lpMsg)
{
ASSERT(::IsWindow(m_hWnd));
if (m_nFlags & WF_OLECTLCONTAINER)
-> return afxOccManager->IsDialogMessage(this, lpMsg);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
else
return ::IsDialogMessage(m_hWnd, lpMsg);
}
In Release Mode There are not any error.
How I can fix this bug??
Reply
Originally posted by: nnamdi
'COleControlSite' : base class undefined
Can anyone help me???
my email address is nnamdio@lineone.net
I tried inserting the files into my project, when I compiled, i got the error messages:
'COccManager' : base class undefined
thanks.
Originally posted by: Sara
This article was just what I was looking for!!!
I had a big problem though putting it into my project and I can't seem to figure out what I am doing wrong...
I included RHtmlView.cpp, RHtmlView.h, ROleControlSite.cpp, and ROleControlSite.h into my project and I compiled my project just to make sure everything was okay and it was
I changed all my CHtmlView with RHtmlView
In all the files which #include my view's header file, I #include the following before the view's header:
#include <..\src\occimpl.h>
#include "ROleControlSite.h"
At this stage my project did not compile becuase Developers Studio said RHtmlView base class was undefined, so I looked at the demo project and found in my HtmlView header I was supposed to #include "RHtmlView.h"
When I did this and compiled my project I got three eror messages:
c:\asd\rhtmlview.h(42) : error C2146: syntax error : missing ';' before identifier 'm_pROccManager'
c:\asd\rhtmlview.h(42) : error C2501: 'ROccManager' : missing storage-class or type specifiers
c:\asd\rhtmlview.h(42) : error C2501: 'm_pROccManager' : missing storage-class or type specifiers
Can anybody please help me????
Thanks!!!
Reply
Originally posted by: Bart Tachelet
Great work !!
Still a question though: you install your own IDocHostUIHandler by replacing the host container. There is however a method in ICustomDoc that allows you to install a IDocHostUIHandler, which is much simpler, i.e. SetUIHandler ().
I've tried this and it works for most methods like ShowContextMenu () and TranslateAccelerator () but GetHostInfo () never gets called. Did you also try this approach? Maybe I call SetUIHandler () just to late (in OnDocumentComplete ().
I'm investigating this because I also use the WebBrowser control in an ATL ActiveX control so it would be nice if I wouldn't have to do the same trickery for ATL as you did for MFC.
Bart
Reply