SysLink control - set property Visible in C++ code

825 views Asked by At

I have a SysLink Control with ID of "IDC_SYSLINK", and the Visible is set to false as default. Based on some logic, it will then be set to True from the C++ code.

In the class CMFCSomeDlg, I defined a member variable m_SysLink of type CLinkCtrl, and link with IDC_SYSLINK by doing the following,

void CMFCSomeDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    DDX_Control(pDX, IDC_SYSLINK, m_SysLink);
}

I wonder how can I use m_SysLink to dynamically set the Visible property of SysLink control?

0

There are 0 answers