能不能把问题描述得详细一点?如果从html文件本身获得TEXT控件是很容易的。

解决方案 »

  1.   

    大概步骤:通过
    FindWindow/FindWindowEx
    取得WebBrowse控件然后
    get_Document
    取得IHTMLDocument2 use get_forms
    got IHTMLFormElementuse item()
    got IHTMLTextElement setAttribute/getAttribute
    to set/get the attribute of the text control
      

  2.   

    首先感谢您对小弟的问题的关注,
    是这样的,我编写一个VC程序,要打开一个网页,比如新浪的竹叶,
    在此页中有两个TXT框,用户名和密码,我要从我的应用程序中对
    这两TXT框赋值,如何作呢?万望大侠不吝赐教,高分送上,另请说明的
    详细一点,谢谢!!!!!