regarding enabling of textbox
well i wish to control the disabling of a edit box by user selecting from a set of option button that is a edit box placed front of that particular option button should be enabled if the user selects that option.......please tell me how can i do so.......the above controls are placed on a dialog box that is been called from the view.cpp.....................
i have disabled the edit boxes initially by properties pane.......
Re: regarding enabling of textbox
Re: regarding enabling of textbox
sorry but how to use this??and where to use this??my control name is IDC_EDIT4 and variable associated is m_z
Re: regarding enabling of textbox
If m_z is a control variable, then you can say:
Code:
m_z.EnableWindow(TRUE); // or FALSE
On the other hand you can say:
Code:
CWnd* wnd = GetDlgItem(IDC_EDIT4);
wnd->EnableWindow(TRUE); // or FALSE