DTM_IMAGEFAIL
4/8/2010
This message is sent by an application to inform the HTML control that the image indicated by the cookie could not be loaded. The cookie value is the value referenced by the dwCookiemember of the INLINEIMAGEINFO structure that was sent with the DTM_SETIMAGE message.
Syntax
DTM_IMAGEFAIL
wParam = 0;
lParam = (LPARAM)(DWORD) dwCookie;
Parameters
- dwCookie
Indicates that the load image that could not be loaded. This value is passed in the dwCookie member of the NM_HTMLVIEW structure when an NM_INLINE_IMAGE notification message is received. This is the same value that was passed in the dwCookie member of the INLINEIMAGEINFO structure when the DTM_SETIMAGE message was sent to the HTML control.
Return Value
None.
Remarks
The Image loading icon will be replaced with the broken image icon, and the ALT text will be displayed.
The following example shows how you might use this message.
SendMessage(hWndCtrl, DTM_IMAGEFAIL, 0, ((NM_HTMLVIEW *)lParam)->dwCookie);
Requirements
Header | htmlctrl.h |
Library | htmlctrl.lib |
Windows Mobile | Pocket PC 2002 and later, Smartphone 2002 and later |
See Also
Reference
HTML Control API Messages
DTM_SETIMAGE
NM_INLINE_IMAGE
INLINEIMAGEINFO
NM_HTMLVIEWA
NM_HTMLVIEWW
HTML Control API Window Styles