更改Microsoft的HTML ActiveX控件的行为 [英] Changing the behaviour of Microsoft's HTML ActiveX control
问题描述
我正在用C ++编写一个提供HTML编辑器功能的类。它源自CHtmlEditCtrl。实际上它是基于这篇优秀的文章 DHTML Editor with Table Support和源代码编辑器 [ ^ ]。
我的问题是Microsoft提供的ActiveX控件似乎没有完全编写。例如,命令IDM_PROPERTIES应显示属性对话框。它不是。它只是成功回归。同样,IDM_REPLACE只显示一个空白对话框。
现在我在扩展添加这些缺失功能的功能方面没有任何问题。我的问题是ActiveX控件实现了一个右手功能,显示一个上下文菜单,恰好包含一个属性条目。这个,你可以猜测,绝对没有。
我如何改变这个ActiveX的行为,以便它不会出现这个菜单选项,或者这样它调用我的实现?
I am writing a class in C++ that provides HTML editor functionality. It is derived from CHtmlEditCtrl. Well actually it is based on this excellent article DHTML Editor with Table Support and Source Editor[^].
My problem is that the ActiveX control provided by Microsoft does not appear to be completely written. For example the command IDM_PROPERTIES should display a properties dialog. It does not. It just returns with success. Likewise IDM_REPLACE just displays a blank dialog.
Now I have no problem in extending the functionality to add these missing features. My problem is that the ActiveX control implements a right hand function that displays a context menu, which just happens to include a "Properties" entry. This, as you can guess, does absolutely nothing.
How can I change the behaviour of this ActiveX so that either it does not present this menu option, or so that it calls my implementation?
推荐答案
查看问题下的评论。
这篇关于更改Microsoft的HTML ActiveX控件的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!