MFC怎么传递参数到html

MFC如何传递参数到html
我在对话框中用了一个WebBrowser控件
#include "explorer1.h"
CExplorer1 m_browser;
m_browser.Navigate(URL,NULL, NULL, NULL, NULL);
我已经写好一个html文件,里面有个参数X,我怎么在MFC中把参数值传递给html中的X
传递参数 webbrowser html mfc 对话框

------解决方案--------------------
如果是javascript里面的变量的话,那就可以用IHTMLDocument 方法中的get_Script获得javascript接口指针,再用Invoke方式调用赋值给X
------解决方案--------------------
WebBrowser控件中有一个Document之类的方法,调用这个方法就能得到一个IDispatch接口指针,然后再用QueryInterface(IID_IHTMLDocument..)获取IHTMLDocument接口指针
------解决方案--------------------
   IHTMLDocument *doc = NULL;   
  
    LPDISPATCH lpDis = m_Web.get_Document();   
    HRESULT hr = lpDis->QueryInterface(IID_IHTMLDocument, (void **)&doc);  
  
    if(FAILED(hr)) return;   
  
    IDispatch *pdisScript = NULL;  
    hr=doc->get_Script(&pdisScript);   
  
  
    doc->Release();   
  
    if( NULL != pdisScript )   
    {   
        OLECHAR FAR* sdoTest = L"doTest"; //页面的javascript的doText函数   
  
        DISPID dispid;   
  
        HRESULT hr=pdisScript->GetIDsOfNames(IID_NULL,&sdoTest,1,LOCALE_SYSTEM_DEFAULT,&dispid);   
  
        if(FAILED(hr)) return;   
  
        DISPPARAMS   dispparams;     
        memset(&dispparams,   0,   sizeof   dispparams);