Поделиться через


CLinkCtrl::Create

Creates a link control and attaches it to a CLinkCtrl object.

virtual BOOL Create(
      LPCTSTR lpszLinkMarkup, 
      DWORD dwStyle, 
      const RECT& rect, 
      CWnd* pParentWnd, 
      UINT nID
);
virtual BOOL Create(
   DWORD dwStyle,
   const RECT& rect,
   CWnd* pParentWnd,
   UINT nID 
);

Параметры

  • lpszLinkMarkup
    Pointer to a zero-terminated string that contains the marked up text to display. For more information, see the section "Markup and Link Access" in the topic Overview of SysLink Controls in the MSDN Li b rary.

  • dwStyle
    Specifies the link control's style. Apply any combination of control styles. See Common Control Styles in the Windows SDK for more information.

  • rect
    Specifies the link control's size and position. It can be either a CRect object or a RECT structure.

  • pParentWnd
    Specifies the link control's parent window. It must not be NULL.

  • nID
    Specifies the link control's ID.

Возвращаемое значение

true if initialization was successful; otherwise false.

Заметки

You construct a CLinkCtrl object in two steps. First, call the constructor and then call Create, which creates the link control and attaches it to the CLinkCtrl object. If you want to use extended windows styles with your control, call CLinkCtrl::CreateEx instead of Create.

The second form of the Create method is deprecated. Use the first form that specifies the lpszLinkMarkup parameter.

Требования

Header: afxcmn.h

См. также

Основные понятия

CLinkCtrl Class

CLinkCtrl Members

Hierarchy Chart

CLinkCtrl::CreateEx