Click to See Complete Forum and Search --> : Disable EditBox programaticly


May 25th, 1999, 08:14 AM
I want to disable an editbox based on other variables on the fly

ShengTian Liao
May 25th, 1999, 08:31 AM
Use GetDlgItem( IDC_EDIT )->EnableWindow( FALSE )

1st

May 25th, 1999, 08:33 AM
Hello,
What you need to do is:
1. Get a pointer to the Edit control using GetDlgItem(nCtrlID) function.
2. Call the EnableWindow function for that control pointer.