Udostępnij za pośrednictwem


Commands G-I (C++)

Command identifiers G-I for C++.

  • IDM_GETSCRIPTENGINE
  • IDM_HORIZONTALLINE
  • IDM_HYPERLINK
  • IDM_IFRAME
  • IDM_IMAGE
  • IDM_INDENT
  • IDM_INLINEDIRLTR
  • IDM_INLINEDIRRTL
  • IDM_INSFIELDSET
  • IDM_INSERTHTML
  • IDM_INSERTTEXT
  • IDM_INSINPUTBUTTON
  • IDM_INSINPUTHIDDEN
  • IDM_INSINPUTIMAGE
  • IDM_INSINPUTPASSWORD
  • IDM_INSINPUTRESET
  • IDM_INSINPUTSUBMIT
  • IDM_INSINPUTUPLOAD
  • IDM_ITALIC

IDM_GETSCRIPTENGINE

Overwrites a horizontal line on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_GETSCRIPTENGINE
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    May be set to NULL or omitted.

  • pvaOut
    IUnknown pointer to the JavaScript engine.

IDM_HORIZONTALLINE

Overwrites a horizontal line on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_HORIZONTALLINE
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the horizontal line. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

Inserts a hyperlink on the current selection, or displays a dialog box enabling the user to specify a URL to insert as a hyperlink on the current selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_HYPERLINK
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    This command displays a dialogue box if the nCmdExecOpt argument of IOleCommandTarget::Exec is set to MSOCMDEXECOPT_DODEFAULT, MSOCMDEXECOPT_PROMPTUSER, or NULL. It does not display a dialogue box if the argument is set to MSOCMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies a URL.

  • pvaOut
    Set to NULL.

pvaIn is only valid if the nCmdExecOpt argument of IOleCommandTarget::Exec is set to MSOCMDEXECOPT_DONTPROMPTUSER. Providing an empty string will create the anchor tag but will leave the name attribute blank.

The HTML generated by this command may vary depending on the version of Windows Internet Explorer.

Although this command is available for Windows Store app using JavaScript, it is recommended that you provide a user interface (UI) if you want to allow users to enter the URL.

IDM_IFRAME

Overwrites an inline frame on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_IFRAME
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the inline frame. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_IMAGE

Overwrites an image on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_IMAGE
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    This command displays a dialogue box if the nCmdExecOpt argument of IOleCommandTarget::Exec is set to MSOCMDEXECOPT_DODEFAULT, MSOCMDEXECOPT_PROMPTUSER, or NULL. It does not display a dialogue box if the argument is set to MSOCMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies the path and file name of the image to insert. If the command displays a dialogue box, this parameter is ignored.

  • pvaOut
    Set to NULL.

If no path is provided for the image file, the path will default to the location of the current document.

Although this command is available for Windows Store app using JavaScript, it is recommended that you use the image picker to allow users to select an image.

IDM_INDENT

Increases the indent of the selected text by one indentation increment.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INDENT
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.

IDM_INLINEDIRLTR

Not supported.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INLINEDIRLTR
Header file mshtmcid.h

 

IDM_INLINEDIRRTL

Not supported.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INLINEDIRRTL
Header file mshtmcid.h

 

IDM_INSFIELDSET

Overwrites a box on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSFIELDSET
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the box. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_INSERTHTML

Inserts HTML at the insertion point, overwriting the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSERTHTML
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR containing valid HTML.

  • pvaOut
    Set to NULL.

IDM_INSERTTEXT

Inserts the given text string at the current location (similar to IDM_PASTETEXT behavior).

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSERTTEXT
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR containing the text to be inserted.

  • pvaOut
    Set to NULL.

IDM_INSINPUTBUTTON

Overwrites a button control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSINPUTBUTTON
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the button control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_INSINPUTHIDDEN

Inserts a hidden control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSINPUTHIDDEN
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the hidden control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_INSINPUTIMAGE

Overwrites an image control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSINPUTIMAGE
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the image control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_INSINPUTPASSWORD

Overwrites a password control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSINPUTPASSWORD
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the password control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_INSINPUTRESET

Overwrites a reset control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSINPUTRESET
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the reset control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_INSINPUTSUBMIT

Overwrites a submit control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSINPUTSUBMIT
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the submit control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_INSINPUTUPLOAD

Overwrites a file upload control on the text selection.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_INSINPUTUPLOAD
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BSTR that specifies an id attribute for the file upload control. May be set to NULL or omitted.

  • pvaOut
    Set to NULL.

IDM_ITALIC

Toggles the current selection between italic and nonitalic.

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_ITALIC
Header file mshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    Set to NULL.

  • pvaOut
    Set to NULL.