Click here to Skip to main content
14,298,716 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello guys! how can i make my checkbox uncheckable using radio button?? it's like the checkbox looks dim and uncheckable & when i click the radio button, i can able to check the checkbox. can you help me with the codes guys?! i'm using visual c++ 2008 express. thank you very much! :)
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

You may disable the check box in the radio button message handler.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

If you are using MFC, I believe it is
m_window.EnableWindow(FALSE);
br mode="hold" />If not MFC, then ask MSDN about ::EnableWindow()...
   

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




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