Export (0) Print
Expand All

Commands G-I (C++)

Command identifiers G-I for C++.

IDM_HORIZONTALLINE

Overwrites a horizontal line on the text selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_HORIZONTALLINE
Header filemshtmcid.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.

IDM_HYPERLINK

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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_HYPERLINK
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_IFRAME
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_IMAGE
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INDENT
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INLINEDIRLTR
Header filemshtmcid.h

 

IDM_INLINEDIRRTL

Not supported.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INLINEDIRRTL
Header filemshtmcid.h

 

IDM_INSFIELDSET

Overwrites a box on the text selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSFIELDSET
Header filemshtmcid.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_INSINPUTBUTTON

Overwrites a button control on the text selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSINPUTBUTTON
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSINPUTHIDDEN
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSINPUTIMAGE
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSINPUTPASSWORD
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSINPUTRESET
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSINPUTSUBMIT
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_INSINPUTUPLOAD
Header filemshtmcid.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 groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_ITALIC
Header filemshtmcid.h

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

 

 

Show:
© 2014 Microsoft