易截截图软件、单文件、免安装、纯绿色、仅160KB

怎么使用JavaScript调用mfc中的方法

我的程序里有个IWebBrowser2对象,怎么才能让里面的网页里的js可以调用c++写的方法呢
IWebBrowser2这个是动态创建的。

不是js调用C++的方法,是C++截获到Js的事件,然后自己执行某个方法

引用
不是js调用C++的方法,是C++截获到Js的事件,然后自己执行某个方法


有具体代码不,

自己google吧

关键字 activex与javscript交互 网上大把的代码

我都搜索半天了,你顺便给个地址吧

refer to CDHtmlEventSink

Now, we will create an event that enables the ActiveX control to notify the web page that it is completed transferring the text from the input parameter to the output parameter. Code in the web page will react to this event and respond by displaying the text in the output parameter to verify that this transfer has occurred by the ActiveX control. In Class View, right click on CMyActiveXCtrl, select Add, Add Event. In the Add Event Wizard, as shown in Figure 11, enter �ParameterLoaded� for Event name and change Internal name to �FireParameterLoaded�. Click Finish for the wizard to create the default code to support this event.


References:
http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624812.html




相关问答:

新人javascript问题求助,请各位大哥大姐们来帮忙!

这是我的文本框
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
提交按钮
<input clas ......

javaScript悬停控件上的浮动层定位

如何实现当鼠标悬停控件上时,出现该控件的尾部显示对应的层,鼠标移动到该层上进行相应的操作,当鼠标移除时(不在控件上也不在层上)层隐藏,
HTML code:
<html>
<head>
<meta http-equiv= ......

JavaScript问题!

<html>
<head>
<title></title>
</head>
<body>
<font color="#0000FF"><b>请在文本框1中输入文字:</b>
<form>
  <input ......

如何用javascript在页面中动态更新某一块的内容?

我的源文件如下:
<html>
<head> <title>show picture </title>
<script>
function change(fileName)
    {
     
    ......

javascript 变量和函数的作用域问题

各位使用js的高手. 小弟问几个问题,请大家帮忙解答.困扰了我2个星期了.一直不太明白.
比如 :
  Div1 是一个层;
   
  var myitem=new Item(document.getElem ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号