if (IsDlgButtonChecked(hDlg, IDC_MYBUTTON)) { // something }
if (m_mybutton.GetCheck()) { // something }