setting checks on checkbox , setcheck not working
-
setting checks on checkbox , setcheck not working how do i set a check on checkbox?
m_checknow.SetCheck(BST_CHECKED);
but the button refuses to get checked m_checknow is a CButton class with a checkbox as its dialog thanks in advanceWhat happens if you run this code
CButton myButton;
myButton.Create("button", BS_AUTO3STATE|WS_CHILD|WS_VISIBLE,
CRect(0,0,100,23), this, 1);
myButton.SetCheck( BST_CHECKED);
WhiteSky
-
setting checks on checkbox , setcheck not working how do i set a check on checkbox?
m_checknow.SetCheck(BST_CHECKED);
but the button refuses to get checked m_checknow is a CButton class with a checkbox as its dialog thanks in advanceDo you have any calls to
UpdateData()
?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne