Compartir a través de


NM_INLINE_SOUND

4/8/2010

This notification message is sent by the HTML viewer control to notify the application to load the sound.

Syntax

NM_INLINE_SOUND
NM_HTMLVIEW * pnmHTMLView = (NM_HTMLVIEW *)lParam;
szSRCText = pnmHTMLView->szTarget;
dwLoopCount = pnmHTMLView->dwCookie;

Parameters

  • pnmHTMLView
    Points to an NM_HTMLVIEW structure that contains information about the NM_INLINE_SOUND notification message.
  • szSRCText
    A null-terminated string that contains the contents of the SRC attribute of the IMG tag in the HTML text.
  • dwLoopCount
    Specifies the loop count value for the LOOP attribute of the BGSOUND tag.

Return Value

If the application handles this message it should return a non-zero result. Passing a zero result to the HTML control will result in the default control handling to occur.

Remarks

When a sound is required from a file, the syntax to use is as follows:

SendMessage(g_hWndCtrl, DTM_ADDTEXTW, FALSE, 
  (LPARAM)L"<bgsound src=\"file://\\windows\\default.wav\"loop=\"15\">;

When this is done, the following is received in the target field:

szTarget='file:///windows/default.wav'

Requirements

Header htmlctrl.h
Library htmlctrl.lib
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

HTML Control API Notifications
NM_HTMLVIEWA
NM_HTMLVIEWW
HTML Control API Window Styles