CButton m_MyCheckBoxMake sure style BS_AUTOCHECKBOX is specified for the button in the .rc file to make it a checkbox. (There is a CCheckListBox which is a special listbox with checks. So not the thing for a single checkbox.) See also https://www.davekb.com/browse_programming_tips:windows_see_if_button_is_checked:txt
Programming Tips - MFC: There is no CCheckBox, so what class do I use for a checkbox in MFC?
Date: 2014jun20
Language: C++
Framework: MFC
Q. MFC: There is no CCheckBox, so what class do I use for a checkbox in MFC?
A. Use CButton: