Can we Set the ReadOnly attribute to a checkbox?
-
As we known, we can set ReadOnly attribute to an editbox, and we can also disable a checkbox. But can we set a ReadOnly attribute to a checkbox and did not disable it ? Looking forward to your answer.
m_chkItem.EnableWindow(false);
will disable the chkbutton, you need to have a member variable of the check box item for this or
GetDlgItem(IDC_XXX)->EnableWindow(false);
will do it directly without the member variable
P.R.A.K.A.S.H
-
m_chkItem.EnableWindow(false);
will disable the chkbutton, you need to have a member variable of the check box item for this or
GetDlgItem(IDC_XXX)->EnableWindow(false);
will do it directly without the member variable
P.R.A.K.A.S.H
Thank you Mr.Prakash, but I thought we made misunderstandings. I meant that I wanna "set a ReadOnly attribute to a checkbox and Not disable it",and the attribute can not find directory in the checkbox property.. And your method is to disable the checkbox, it's not what I want, but thank you anyway.
-
Thank you Mr.Prakash, but I thought we made misunderstandings. I meant that I wanna "set a ReadOnly attribute to a checkbox and Not disable it",and the attribute can not find directory in the checkbox property.. And your method is to disable the checkbox, it's not what I want, but thank you anyway.
Humm, If its disabled its readonly... I guess you are confusing with readonly property of edit box. If its editable then its not readonly.. this is according to the concept of windows control. If you want its to alter then you need to cutomise it.
P.R.A.K.A.S.H
-
Humm, If its disabled its readonly... I guess you are confusing with readonly property of edit box. If its editable then its not readonly.. this is according to the concept of windows control. If you want its to alter then you need to cutomise it.
P.R.A.K.A.S.H
-
And what should I do to cutomise it? I am just a junior learner, Could you show me by codes? Thanks a lots.
humm, I dont think there will be any code that will meet ur exact requirement, you can check on custom control here in cp just type custom control in the search edit box in this page.
P.R.A.K.A.S.H
-
humm, I dont think there will be any code that will meet ur exact requirement, you can check on custom control here in cp just type custom control in the search edit box in this page.
P.R.A.K.A.S.H
-