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 a discussion on Checkbox help within the Windows Programming forums, part of the Platform Specific Boards category; I was wondering how to implement Checkboxes in my program using C. I have created a checkbox in a dialog ...
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
Last edited by Welder; 11-04-2007 at 03:10 PM.
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);
Last edited by scwizzo; 11-04-2007 at 03:25 PM.