请问IHTMLElement接口的方法get_onFocus应该如何使用啊?

readnothing 2002-05-04 10:24:15
使用的方法以及在什么事件或函数中调用?
急!

(本来我是想用DISPID_HTMLELEMENTEVENTS_ONFOCUS在invoke中响应的,哪知vc6的头文件mshtml.h及mshtmdid.h中居然没有定义。。。。。。。)
...全文
83 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
readnothing 2002-05-14
  • 打赏
  • 举报
回复
3x
Edward 2002-05-14
  • 打赏
  • 举报
回复
如果用MFC,可以参考BEGIN_DISPATCH_MAP;如果用ATL,相信你知道肯定知道怎么实现一个继承IDispatch接口的COM对象。:-)
readnothing 2002-05-09
  • 打赏
  • 举报
回复
to jiangsheng :谢谢
readnothing 2002-05-09
  • 打赏
  • 举报
回复
大家帮忙up一下
蒋晟 2002-05-09
  • 打赏
  • 举报
回复
yes
Edward 2002-05-08
  • 打赏
  • 举报
回复
HRESULT IHTMLElement2::get_onfocus(VARIANT* p);
HRESULT IHTMLElement2::put_onfocus(VARIANT v);

v
VARIANT of type VT_DISPATCH that specifies the IDispatch interface of an object with a default method that is invoked when the event occurs.

你需要调用put_onfocus,传递一个IDispatch接口指针,这个接口要求有一个default方法。
蒋晟 2002-05-08
  • 打赏
  • 举报
回复
安装新的SDK就行
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
readnothing 2002-05-08
  • 打赏
  • 举报
回复
jiangsheng,谢谢,要装的是不是Internet Development SDK?
readnothing 2002-05-08
  • 打赏
  • 举报
回复
edyang(化石) ,能不能给个详细的例子,我急用,3x
readnothing 2002-05-08
  • 打赏
  • 举报
回复
有人回答一下吗?
readnothing 2002-05-05
  • 打赏
  • 举报
回复
up
readnothing 2002-05-05
  • 打赏
  • 举报
回复
难道高手都放假了吗。。。。。。。。。。。。。。。
mywe 2002-05-05
  • 打赏
  • 举报
回复
up
readnothing 2002-05-04
  • 打赏
  • 举报
回复
最好能有个例子。。。。。。。。。。。。。。。

3,055

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC HTML/XML
社区管理员
  • HTML/XML社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧