Sdílet prostřednictvím


Commands D-F (C++)

Command identifiers D-F for C++.

  • IDM_DEFAULTPARAGRAPHSEPARATOR
  • IDM_DELETE
  • IDM_DIRLTR
  • IDM_DIRRTL
  • IDM_DROPDOWNBOX
  • IDM_DYNSRCPLAY
  • IDM_DYNSRCSTOP
  • IDM_EDITMODE
  • IDM_ENABLE_OBJECT_RESIZING
  • IDM_ENDUNDOUNIT
  • IDM_EXECPRINT
  • IDM_FONTNAME
  • IDM_FONTSIZE
  • IDM_FORECOLOR

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 group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_DEFAULTPARAGRAPHSEPARATOR
Header file mshtmcid.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 group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_DELETE
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_DIRLTR

Not supported.

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

 

IDM_DIRRTL

Not supported.

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

 

IDM_DROPDOWNBOX

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

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

  • pvaOut
    Set to NULL.

IDM_DYNSRCPLAY

Not supported.

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

 

IDM_DYNSRCSTOP

Not supported.

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

 

IDM_EDITMODE

Not supported.

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

 

IDM_ENABLE_OBJECT_RESIZING

Enables or disables image resizing (grippers) in editable regions.

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

 

Call IOleCommandTarget::Exec with the following parameters.

  • nCmdExecOpt
    Set to OLECMDEXECOPT_DONTPROMPTUSER.

  • pvaIn
    VARIANT of type VT_BOOL indicating whether to enable object resizing.

  • pvaOut
    Set to NULL.

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 group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_ENDUNDOUNIT
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_EXECPRINT

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

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_EXECPRINT
Header file mshtmcid.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 group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_FONTNAME
Header file mshtmcid.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 group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_FONTSIZE
Header file mshtmcid.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 group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_FORECOLOR
Header file mshtmcid.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.