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