CMFCRibbonLinkCtrl::CMFCRibbonLinkCtrl
Constructs and initializes a CMFCRibbonLinkCtrl object.
CMFCRibbonLinkCtrl(
UINT nID,
LPCTSTR lpszText,
LPCTSTR lpszLink
);
Parameters
[in] nID
Specifies the command ID of the command that executes when the link control is clicked.[in] lpszText
Specifies the label to display on the link control.[in] lpszLink
Specifies the hyperlink associated with the link control.
Example
The following example demonstrates how to use the constructor of the CMFCRibbonLinkCtrl class. This code snippet is part of the Ribbon Gadgets sample.
// CMFCRibbonPanel* pPanel3
pPanel3->Add(new CMFCRibbonLinkCtrl(ID_RIBBON_OBTN_2, _T("Send e-mail"), _T("mailto:info@microsoft.com")));
Requirements
Header: afxRibbonLinkCtrl.h