NM_INLINE_SOUND

Windows Mobile 6.5
4/8/2010

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


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

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.

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.

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'

Headerhtmlctrl.h
Libraryhtmlctrl.lib
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Community Additions

Show: