MSHTML Command Identifiers
This section contains a set of MSHTML command identifiers that specify an action to take on the given object. They can be used with the IOleCommandTarget::Exec and IOleCommandTarget::QueryStatus methods.
Command Identifiers
Determines if an element is statically positioned.
Determines if an element is absolutely positioned.
Allows absolutely positioned elements to be moved by dragging.
Sets an element's position property to "absolute."
Prompts the user with a dialog box to add the current document, a hyperlink, or an image to the Favorites list.
Adds an entry or entries to the glyph table, which specifies images to display for specific tags in design mode.
When this command is issued in design mode, any element that has an ATOMICSELECTION attribute set to TRUE will be selectable only as a unit.
Turns automatic URL detection on and off.
Sets or retrieves the background color of the current selection.
Selects largest font size.
Selects large font size.
Selects medium font size.
Selects small font size.
Selects smallest font size.
Command explicitly instructs MSHTML to begin an action.
Not supported.
Not supported.
Sets or retrieves the current block format tag.
Toggles the current selection between bold and nonbold.
Creates a bookmark anchor or retrieves the name of a bookmark anchor for the current selection or insertion point.
Break script execution in debugger at next line.
Not supported.
Overwrites a button control on the text selection.
Sets the state of caret browsing mode, which allows movement within a page and navigation using a keyboard.
Overwrites a check box control on the text selection.
Clears all authentication credentials from the cache. Applies only to IHTMLDocument2::execCommand.
Clears the current selection.
Sets the default composition font settings for the MSHTML Editor.
Copies the current selection to the clipboard.
Not implemented.
Copies the current selection to the clipboard and then deletes it.
Set or retrieves the default block element.
Deletes the current selection.
Not supported.
Not supported.
Overwrites a drop-down selection control on the text selection.
Not supported.
Not supported.
Not supported.
Displays the source editor.
Command explicitly instructs MSHTML to end an action.
Not supported.
Shows the Find dialog.
Opens selected link in current window.
Opens selected link in a new window.
Opens selected link in a new tab.
Opens a font dialog box to enable the user to change the text color, font, and font size of the current selection.
Sets or retrieves the font for the current selection.
Sets or retrieves the font size for the current selection.
Sets or retrieves the foreground (text) color of the current selection.
Shows or hides formatting indicators.
Retrieves the strings corresponding to the available block format tags.
Retrieves the progress of the download.
IDM_GETFRAMEZONE returns the security zone of the current page in the browser.
Retrieves whether the document is a print template.
Retrieves the last user action time.
Go to the previous URL entry in the history list.
Go to the next URL entry in the history list.
Overwrites a horizontal line on the text selection.
Enables the IDM_COMPOSESETTINGS command.
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.
Overwrites an inline frame on the text selection.
Overwrites an image on the text selection.
Sets whether to enable Input Method Editor (IME) reconversion.
Increases the indent of the selected text by one indentation increment.
Not supported.
Not supported.
Inserts a Microsoft ActiveX control.
Overwrites a box on the text selection.
Overwrites a button control on the text selection.
Inserts a hidden control on the text selection.
Overwrites an image control on the text selection.
Overwrites a password control on the text selection.
Overwrites a reset control on the text selection.
Overwrites a submit control on the text selection.
Overwrites a file upload control on the text selection.
Toggles the current selection between italic and nonitalic.
Centers the format block in which the current selection is located.
Not supported.
Left-justifies the format block in which the current selection is located.
Not supported.
Right-justifies the format block in which the current selection is located.
Maintains a selection in a browser instance when the browser loses focus.
View source in the script debugger.
Overwrites a list box selection control on the text selection.
Causes the MSHTML Editor to update an element's appearance continuously during a resizing or moving operation, rather than updating only at the completion of the move or resize.
Overwrites an empty marquee on the text selection.
Allows for the selection of more than one site selectable element at a time when the user holds down the SHIFT or CTRL keys.
Shows the "New HTML Document" dialog.
Not supported.
Show the Internet Options dialog.
Toggles the text selection between an ordered list and a normal format block.
Decreases by one increment the indentation of the format block in which the current selection is located.
Toggles the text-entry mode between insert and overwrite.
Overwrites a line break on the text selection.
Notifies the host that the document is ready to be modified.
Overwrites the contents of the clipboard on the current selection.
Not implemented.
Inserts the contents of the clipboard.
Pastes the contents of the clipboard (along with formatting) over the current selection.
Prints the current document using either the default print template or a custom print template.
Opens the Print Preview window for the current document using either the default print preview template or a custom template.
Shows the Properties dialog box for the current element or document.
Overwrites a radio control on the text selection.
Not supported.
Refreshes the current document.
Removes the formatting tags from the current selection.
Deletes an entry or entries from the glyph table.
Not supported.
Shows the Search and Replace dialog.
Executes the specified script.
Shows the File Save dialog.
Saves the current webpage to a file.
Selects the entire document.
Sets the custom cursor.
Sets whether the document has been modified.
Sets whether the document is a print template.
Toggles the display of code.
Not supported.
Not supported.
Not supported.
Toggles the visibility of the status bar.
Not supported.
Not supported.
Not supported.
Not supported.
Not implemented.
Passes the print settings of the Page Setup dialog box.
Overwrites a multiline text input control on the text selection.
Overwrites a text control on the text selection.
Toggles the visibility of the toolbar.
Removes any bookmark from the current selection.
Toggles the current selection between underlined and not underlined.
Undo the previous command.
Removes any hyperlink from the current selection.
Converts the text selection into an ordered list.
Launches the configured HTML source viewer.
IECMDID_BEFORENAVIGATE_DOEXTERNALBROWSE
Starts navigation in a new window.
IECMDID_BEFORENAVIGATE_GETIDLIST
Retrieves a buffer that contains the item identifier list.
IECMDID_BEFORENAVIGATE_GETSHELLBROWSE
Retrieves whether the pending navigation is to a shell folder.
IECMDID_CLEAR_AUTOCOMPLETE_FOR_FORMS
Clears data saved in forms.
IECMDID_GET_INVOKE_DEFAULT_BROWSER_ON_NEW_WINDOW
Gets whether new windows launched from Web browser controls should launch the user's default browser. When set to false, new windows will be handled by Windows Internet Explorer, regardless of the user's default browser.
IECMDID_SET_INVOKE_DEFAULT_BROWSER_ON_NEW_WINDOW
Sets whether new windows launched from Web browser controls should launch the user's default browser. When set to false, new windows will be handled by Internet Explorer, regardless of the user's default browser.
IECMDID_SETID_AUTOCOMPLETE_FOR_FORMS
Sets the user ID of the autocompletion data store.