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);