|
-
June 11th, 2009, 12:30 PM
#1
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.......
-
June 11th, 2009, 12:37 PM
#2
Re: regarding enabling of textbox
-
June 11th, 2009, 12:41 PM
#3
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
-
June 11th, 2009, 12:44 PM
#4
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|