CButton !!!!!
-
HEllo Friends, One samll query. I goes like this I have a dialog box in a dll . The dialogbox contains 4 normal button now i have to disable and enable them as per that conditions. There is a clear, clear all, Ok and help buttons. NOw if i click the clear all button i make that button disable and now want to set the focus on Ok button. i am able to do the same but teh problem is that when i click the clear all buton then button gets a black outline as it gets focus when i click it, but now i want to disable it and then the OK button should be highlited but this doesnt take place.i mean the border is still there after disableing the clear all button. i heva tried set focus on button OK the focus is set, but the border doesnt go !!!!!!!! can any one help Thanx TAKE CARE
-
HEllo Friends, One samll query. I goes like this I have a dialog box in a dll . The dialogbox contains 4 normal button now i have to disable and enable them as per that conditions. There is a clear, clear all, Ok and help buttons. NOw if i click the clear all button i make that button disable and now want to set the focus on Ok button. i am able to do the same but teh problem is that when i click the clear all buton then button gets a black outline as it gets focus when i click it, but now i want to disable it and then the OK button should be highlited but this doesnt take place.i mean the border is still there after disableing the clear all button. i heva tried set focus on button OK the focus is set, but the border doesnt go !!!!!!!! can any one help Thanx TAKE CARE
Check out CButton::SetState()
-
Check out CButton::SetState()
Yes checked it but That just makes the button in a click state and the problem still persist Thanx TAKE CARE