Compartilhar via


DTM_ANCHOR

4/8/2010

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 Value

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 in such a way that, if the anchor is added, the jump will occur as soon as the anchor is available. When there is a pending anchor, any navigation commands from the user, such as keyboard scrolling or using the scroll bar, stops the pending anchor jump.

The following example shows how you might use this message.

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

Requirements

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

See Also

Reference

HTML Control API Messages
DTM_ANCHORW