Commands D-F (C++)

Command identifiers D-F for C++.

IDM_DEFAULTPARAGRAPHSEPARATOR

Sets the default element (p or div) to use when creating new paragraph blocks in plain text (for example, when pressing Enter).

Once a paragraph separator has been inserted into an editable area, calling DefaultParagraphSeparator will no longer have any effect on that region. (This command does not enable toggling between p and div separators within the same editable region.)

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

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

VARIANT of type VT_BSTR that specifies the default element to use for creating new paragraphs. Must be either "p" or "div".

pvaOut

Set to NULL.

IDM_DELETE

Deletes the current selection.

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

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_DIRLTR

Not supported.

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

 

IDM_DIRRTL

Not supported.

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

 

IDM_DROPDOWNBOX

Overwrites a drop-down selection control on the text selection.

Command groupCGID_MSHTML (defined in mshtmhst.h)
Symbolic constantIDM_DROPDOWNBOX
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 drop-down selection control. May be set to NULL or omitted.

pvaOut

Set to NULL.

IDM_DYNSRCPLAY

Not supported.

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

 

IDM_DYNSRCSTOP

Not supported.

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

 

IDM_EDITMODE

Not supported.

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

 

IDM_ENDUNDOUNIT

Ends an undo unit. Any DOM changes between IDM_BEGINUNDOUNIT and IDM_ENDUNDOUNIT (including any changes from script) are collected into an undo unit and undone and redone as if they were a single command.

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

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn

Set to NULL.

pvaOut

Set to NULL.

IDM_EXECPRINT

Opens the print dialog box so the user can print the current page.

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

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

nCmdExecOpt

Set to NULL.

pvaIn

Set to NULL.

IDM_FONTNAME

Sets or retrieves the font for the current selection.

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

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn
VARIANT of type VT_BSTR that specifies a font name or font list, as described by the IHTMLRuleStyle::font attribute.
pvaOut

VARIANT of type VT_BSTR that receives the font name for the current selection. If the current selection uses more than one font, pvaOut will return a VARIANT of type VT_NULL. Set pvaIn to NULL to retrieve information to pvaOut.

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

IDM_FONTSIZE

Sets or retrieves the font size for the current selection.

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

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn
VARIANT of type VT_I4 or VT_BSTR that specifies the font size. This must be a value between 1 and 7, inclusive.
pvaOut

VARIANT of type VT_I4 that receives the font size. If the current selection uses more than one font size, pvaOut will return a VARIANT of type VT_NULL. Set pvaIn to NULL to retrieve information to pvaOut.

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

IDM_FORECOLOR

Sets or retrieves the foreground (text) color of the current selection.

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

 

Call IOleCommandTarget::Exec with the following parameters.

nCmdExecOpt

Set to OLECMDEXECOPT_DONTPROMPTUSER.

pvaIn
VARIANT of type VT_BSTR that specifies a color name or a six-digit hexadecimal RGB value, with or without a leading hash mark, as defined in the Color Table.VARIANT of type VT_BSTR or VT_I4 that specifies the new color. If pvaIn is a VT_BSTR, the value can be a color name or a string representing a six-digit hexadecimal RGB color value, with or without a leading hash mark, as defined in the Color Table. If pvaIn is a VT_I4, the value will be in interpreted as a COLORREF.
pvaOut

VARIANT of type VT_I4 that receives a COLORREF value. If the current selection uses more than one foreground color, pvaOut will return a VARIANT of type VT_NULL. Set pvaIn to NULL to retrieve information to pvaOut.

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

 

 

Show:
© 2014 Microsoft