Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
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_HTMLVIEWstructure that contains information about the NM_INLINE_SOUNDnotification 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:

Copy Code
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:

Copy Code
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