DDX_DHtml_Img_Src

Gets or retrieves the name of an image or a video clip in the document.

DDX_DHtml_Img_Src( 
   CDataExchange* dx, 
   LPCTSTR name, 
   CString& var  
)

Parameters

  • dx
    A pointer to a CDataExchange object.

  • name
    The value that you specified for the HTML control's ID parameter.

  • var
    The value being exchanged.

Remarks

When using the DDX_DHtml_Img_Src macro to retrieve the src property for an IMAGE element, the Internet Explorer image object will return the fully escaped URL for the image source. For example, if you use the DDX_DHtml_Img_Src macro to set the src property of an IMAGE element to the string "some interesting picture," when you retrieve that property, Internet Explorer will return the string "res://d:\myapplication\myapp.exe/some%20interesting%20picture."

This macro calls the CDHtmlDialog::DDX_DHtml_ElementText function using the DISPID_IHTMLIMGELEMENT_SRC dispatch ID.

Requirements

Header: afxdhtml.h

See Also

Reference

DDX_DHtml Helper Macros

src Property (IHTMLFrameBase)