MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NM_DOCUMENTCOMPLETE

Windows Mobile 6.5
4/8/2010

This notification message is sent by the HTML viewer control when the document navigation is complete. This message is sent by the SetWindowText function.


NM_DOCUMENTCOMPLETE
NM_HTMLVIEW * pnmHTMLView = (NM_HTMLVIEW *)lParam;
szURL = pnmHTMLView->szTarget;

pnmHTMLView

Points to an NM_HTMLVIEW structure that contains information about the DOCUMENTCOMPLETE notification message.

szURL

A null-terminated string that contains the navigation URL.

The return value is ignored by the control.

NM_DOCUMENTCOMPLETE is sent by SetWindowText only when the string is not NULL.

The information contained in the NM_HTMLVIEW: szTarget field returned by NM_DOCUMENTCOMPLETE is the complete navigation URL. The information contained in the NM_HTMLVIEW: szTarget field returned by NM_BEFORENAVIGATE is the navigation URL as it appeared in the SendMessage argument list before being composed into a complete and valid navigation URL.

To navigate to msn.com:

SendMessage(g_hWndCtrl, DTM_NAVIGATE, 0, (LPARAM)TEXT("http://msn.com/);

to navigate to http://www.msn.com.

The results of NM_BEFORENAVIGATE and NM_DOCUMENTCOMPLETE are the following:

NM_BEFORENAVIGATE NM_HTMLVIEW struct:szTarget=http://msn.com/
NM_DOCUMENTCOMPLETE NM_HTMLVIEW struct:szTarget=http://www.msn.com/

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

Community Additions

Show:
© 2016 Microsoft