I've been coding a little program which works perfectly, but I decided to upgrade it and add a few checkboxes. Now since i've never made one before I'm having trouble and I can't seem to find anywhere that can solve my problem.
void TheAppDlg::OnFirstcheckbox()
{
if(OnFirstcheckbox !=0)
{
m_cCharSet.SetWindowText(_T("123"));
}
if (OnFirstcheckbox == 0)
m_cCharSet.SetWindowText(_T("abc"));
}
Is pretty much the code I am using to see if it's checked or not, now it will know it's checked and that works, but unchecking it doesn't work it just sticks with 123. I've probably missed something stupidly easy out.