deepak a


{ City }
< Country > india
* Profession *
User No # 14700
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 0
Questions / { deepak a }
Questions Answers Category Views Company eMail




Answers / { deepak a }

Question { 13002 }

What function is used to disable a control at runtime?


Answer

Suppose IDC_EDIT1 is Resource ID of your control.

Get the window handle for that control by

CWnd * pWnd = GetDlgItem(IDC_EDIT1);

then call EnableWindow with parameter FALSE

pWnd->EnableWindow(FALSE);

Is This Answer Correct ?    1 Yes 0 No