I was wondering how to implement Checkboxes in my program using C.
I have created a checkbox in a dialog box, but don't know how to allow it to be checked. When I click it nothing happens. I also want to know how to get/set it's value.
This is from one of my projects...
To set the check state check here
//This is in the dialog resource file
LTEXT "Known variable",CTEXTONE,405,15,70,13
LTEXT "Known variable",CTEXTTWO,405,40,70,13
// AUTOCHECKBOX is different from CHECKBOX
//This is from the DlgProc(), this gets the check state
CHECKSTATEONE = IsDlgButtonChecked(hwnd,CHECKONE);
CHECKSTATETWO = IsDlgButtonChecked(hwnd,CHECKTWO);