Click to return to the DHTML, HTML     
InsertIFrame Command | ID...     InsertInputButton Command...     Command Identifiers    
Web Workshop  |  DHTML, HTML & CSS

InsertImage Command | IDM_IMAGE Command ID


Overwrites an image on the current selection.

Scripting Information

Command InsertImage
execCommand vValue Optional. String that specifies the path and name of the image file to be inserted.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue

C++ Information

Command group CGID_MSHTML
Symbolic constant IDM_IMAGE
User interface Yes
IOleCommandTarget::Exec parameters
pvaIn Optional. VT_BSTR that specifies the path and file name of the image to be inserted. If the default UI is toggled on, this parameter is ignored.
pvaOut Not applicable.
Header file Mshtmcid.h
Applies to IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus

Remarks

If no path is provided for the image file, the path will default to the location of the current document.

Minimum Availability

Internet Explorer 5 and later



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.