cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
PysnLiu
Pilgrim

How to Disable edit control contionally?

I have placed two radio and an edit control in a dialog,and i want to implement the following effects:
If i clicked radio A ,the edit control is editable.
If i clicked radio B , the edit conrol is uneditable.
How can i manage to do this?
My installation is an InstallScript one.
Thanks!
Labels (1)
0 Kudos
2 Replies
J_anitha
Pilgrim

Re: How to Disable edit control contionally?

Do the following which your radio button is clicked

hwndDlg = CmdGetHwndDlg ( szDialogName );
hEditBox = GetDlgItem( hwndDlg,edit_box ctrl id);
EnableWindow( hEditBox , Disable);
0 Kudos
PysnLiu
Pilgrim

Re: How to Disable edit control contionally?

Thanks very much!
It wroks!:)
0 Kudos