Click here to Skip to main content
13,087,566 members (92,591 online)
Rate this:
Please Sign up or sign in to vote.
See more:
In my MFC dialogue based application there are 32 checkboxes which are arranged as 8*4. So my doubt is whenever I click on one of the check box in row then there should be disable remaining three checkbox of respective column!!
Now I write code for all check boxes individually for all 32 checkboxes event handler as given below:
void Check_Test::OnBnClickedcheck1()
    // TODO: Add your control notification handler code here

So is there any common function or control for all check box behaviour??
Thanks in advance!!!
Posted 26-Feb-13 20:25pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

To achieve this behavior I would better use Radio Buttons - just group the radio buttons column-like! In this case there is no coding necessary than: the checking one of the button will cause the un-checking the rest of the buttons in the same column.
Sameer_awana 27-Feb-13 9:14am
But in that respective row of check box we can select multiple,so in radio button control this is not possible!!
This is main problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100