Share via


DTM_ANCHOR

Send Feedback

This message is sent by an application to tell the HTML control to jump to the indicated anchor.

Syntax

DTM_ANCHOR
  wParam = 0;
  lParam = (LPARAM)(LPSTR) szAnchor;

Parameters

  • szAnchor
    A null-terminated text string that contains the name of the anchor to which the HTML control is to jump.

Return Values

None.

Remarks

If the anchor is already in the document, the jump occurs immediately. If the specified anchor is not in the document, the request will be remembered such that, if the anchor is added, the jump will occur as soon as the anchor is available. While there is a pending anchor, any navigation commands from the user, such as keyboard scrolling or using the scroll bar, aborts the pending anchor jump.

This topic is also documented in the Microsoft® Windows® CE SDK. Only the requirements table has changed.

The following example shows how you might use this message.

SendMessage(hWndHTML, DTM_ANCHOR, 0, (LPARAM)&pnmHtmlView->szTarget[1]);

Requirements

Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: htmlctrl.h
Library: htmlctrl.lib

See Also

HTML Control API Messages | DTM_ANCHORW

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.