乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      ShowHTMLDialog Function ()

       xiaoqdu 2008-11-28
      ShowHTMLDialog Function

      Creates a modal dialog box that displays HTML.

      Syntax

      HRESULT ShowHTMLDialog(      
          HWND hwndParent,     IMoniker *pMk,     VARIANT *pvarArgIn,     WCHAR *pchOptions,     VARIANT *pvarArgOut );

      Parameters

      hwndParent
      A handle to the parent of the dialog box.
      pMk
      The address of an IMoniker interface from which the HTML for the dialog box is loaded.
      pvarArgIn
      The address of a VARIANT structure that contains the input data for the dialog box. The data passed in this VARIANT is placed in the window object's IHTMLDialog::dialogArguments property. This parameter can be NULL.
      pchOptions
      The window ornaments for the dialog box. This parameter can be NULL or the address of a string that contains a combination of values separated by semicolons (;). See the description of the features parameter of the IHTMLWindow2::showModalDialog method of the window object for detailed information.
      pvarArgOut
      The address of a VARIANT structure that contains the output data for the dialog box. This VARIANT receives the data that was placed in the window object's IHTMLDialog::returnValue property. This parameter can be NULL.

      Return Value

      Returns S_OK if successful, or an error value otherwise.

      Remarks

      To use ShowHTMLDialog, which is implemented in Mshtml.dll, you must dynamically load and call this function by using the LoadLibrary function and the GetProcAddress function. The proper function type for ShowHTMLDialog is defined in Mshtmhst.h in the SHOWHTMLDIALOGFN type. A full sample that demonstrates the use of ShowHTMLDialog is available on the ShowHTMLDialog Sample Source Page.

      security note Security Alert  Using LoadLibrary incorrectly can compromise the security of your application by loading the wrong DLL. Refer to the LoadLibrary documentation for information on how to correctly load DLLs with different versions of Microsoft Windows.

      Example

      The following example shows the basic steps to load Mshtml.dll, obtain the address of ShowHTMLDialog using GetProcAddress, create a URL moniker, and call ShowHTMLDialog.

         HINSTANCE hinstMSHTML = LoadLibrary(TEXT("MSHTML.DLL"));
      if (hinstMSHTML == NULL)
      {
      // Error loading module -- fail as securely as possible
      return;
      }
      SHOWHTMLDIALOGFN* pfnShowHTMLDialog;
      pfnShowHTMLDialog = (SHOWHTMLDIALOGFN*)GetProcAddress(hinstMSHTML,
      TEXT("ShowHTMLDialog"));
      if (pfnShowHTMLDialog)
      {
      IMoniker *pURLMoniker;
      BSTR bstrURL = SysAllocString(L"http://www./dialogsource.htm");
      CreateURLMoniker(NULL, bstrURL, &pURLMoniker);
      if (pURLMoniker)
      {
      (*pfnShowHTMLDialog)(NULL, pURLMoniker, NULL, NULL, NULL);
      pURLMoniker->Release();
      }
      SysFreeString(bstrURL);
      }
      FreeLibrary(hinstMSHTML);

      Function Information

      Stock Implementation mshtml.dll
      Custom Implementation No
      Header mshtmhst.h
      Import library mshtml.dll
      Minimum availability Internet Explorer 4.0
      Minimum operating systems Windows NT 4.0, Windows 95, Windows CE 4.0

      See Also

      Creating an HTML Resource

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多