CLinkCtrl::CreateEx

Creates a link control with extended styles and attaches it to a CLinkCtrl object.

virtual BOOL CreateEx(
   LPCTSTR lpszLinkMarkup, 
   DWORD dwExStyle,
   DWORD dwStyle, 
   const RECT& rect, 
   CWnd* pParentWnd, 
   UINT nID
);
virtual BOOL CreateEx(
DWORDdwExStyle,
DWORDdwStyle,
const RECT&rect,
CWnd*pParentWnd,
UINTnID 
);

Parameters

  • 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 Library.

  • dwExStyle
    Specifies the extended style of the link control. For a list of extended Windows styles, see the dwExStyle parameter for CreateWindowEx in the Windows SDK.

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

  • 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.

Return Value

true if initialization was successful; otherwise false.

Remarks

Use CreateEx instead of Create to apply extended Windows style constants.

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

Requirements

Header: afxcmn.h

See Also

Reference

CLinkCtrl Class

Hierarchy Chart

CLinkCtrl::Create

Other Resources

CLinkCtrl Members