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.
Thanks.
-Nick
Printable View
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.
Thanks.
-Nick
This is from one of my projects...
To set the check state check hereCode://This is in the dialog resource file
LTEXT "Known variable",CTEXTONE,405,15,70,13
AUTOCHECKBOX "Yes",CHECKONE,405,28,45,10
LTEXT "Known variable",CTEXTTWO,405,40,70,13
AUTOCHECKBOX "Yes",CHECKTWO,405,53,45,10
// AUTOCHECKBOX is different from CHECKBOX
//This is from the DlgProc(), this gets the check state
CHECKSTATEONE = IsDlgButtonChecked(hwnd,CHECKONE);
CHECKSTATETWO = IsDlgButtonChecked(hwnd,CHECKTWO);
Thanks scwizzo.