Share via


IDM_CARETBROWSINGMODE Command ID

Sets the state of caret browsing mode, which allows movement within a page and navigation using a keyboard.

C++ Information

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_CARETBROWSINGMODE
User interface None. Set nCmdExecOpt to OLECMDEXECOPT_DONTPROMPTUSER.
IOleCommandTarget::Exec parameters
pvaIn A pointer to a VARIANT of type VT_BOOL that specifies VARIANT_TRUE to enable caret browsing mode or VARIANT_FALSE to disable caret browsing mode; or NULL to toggle the current state.
pvaOut Set to NULL.
Header file mshtmcid.h
Applies to IHTMLDocument2::execCommand, IHTMLDocument2::queryCommandEnabled, IHTMLDocument2::queryCommandIndeterm, IHTMLDocument2::queryCommandState, IHTMLDocument2::queryCommandSupported, IHTMLDocument2::queryCommandValue, IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus.

Remarks

You can toggle the caret-browsing-mode state in Windows Internet Explorer by pressing F7 or by selecting the Caret Browsing menu item, which is accessible through both the Page button on the command bar and the View menu category on the menu bar.

Use the IOleCommandTarget::QueryStatus method to determine if caret browsing mode is enabled ( OLECMDF_ENABLED & OLECMDF_LATCHED).

Minimum Availability

Internet Explorer 8 and later.

See Also

OLECMDF