How do I trap HTML events from an embedded web control in edit mode?
Posted on 2001-08-18
In my application I have an embedded web control and some buttons that allow the user to enter edit mode and change properties in the html code like font color, bold, italic, etc.
I want to trap the event of the user selecting a piece of text and set these buttons to their appropriate states like in an editor (ie. the "bold" button should be pressed/checked if the selection is bold).
I have already implemented the following relevant classes (aside from the obvious CWebbrowser class):
class CImpIDispatch : public IDispatch
class CCustomControlSite : public COleControlSite
class CCustomOccManager : public COccManager
I want to be able to capture events like
when in edit mode.
How do I do that?
Thanks in advance.