visual c++ - Once I click the first check box then it will place check Mark in another Check BOX also -


i trying set attribute of 1 check box selected after click first check box

assume there 3 check boxes

[] 1

[] 2

[] 3

if tick check box 1 second check box marked checked.

[✔] 1

[✔] 2

[] 3

i need solution in in mfc.(same question asked 1 in different platform)

the function onbnclicked() called when checkbox either checked or cleared. sample code gets button check state, doesn't use it.

here working sample:

void cmfcdlgdlg::onbnclickedcheck1() {     if (isdlgbuttonchecked(idc_check1) == bst_checked)         checkdlgbutton(idc_check2, bst_checked); } 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -