mercredi 4 septembre 2019

How to set checkbox as check by default in an MFC dialog application?

I'm trying to set some check boxes as checked by default in my MFC dialog when it runs.

I have created a CButton variable for the check box called m_check. Next i added m_check.SetCheck in OnInitDialog.

BOOL CModelDlg::OnInitDialog()
{
    ....
    m_check.SetCheck;
    ....

The error always appears "Error: a pointer to a bound function may only be used to call the function". I'm not sure what this error means. Any help would be appreciated. Thank you!




Aucun commentaire:

Enregistrer un commentaire