Hi,
     Does somebody know hto disable an edit control in dialog procedure?

     for example ,(attchements) if I uncheck the "Enable AF Lost Step check",
    the two edit controls should become gray or disable to accept text input.
   
    invoke SendDlgMessage hDlg,IDC_ED1,???,

    Thanks in advance.
    RGS!
Attachments:
Posted on 2006-01-01 09:00:41 by Luckrock
invoke EnableWindow,HandleMax,FALSE
        invoke EnableWindow,HandleMin,FALSE
Posted on 2006-01-01 09:08:57 by dcskm4200
Thanks
i will try
Rgs!
Posted on 2006-01-01 09:35:47 by Luckrock
invoke SendDlgItemMessage, hDlg, IDC_ED1, EM_SETREADONLY, TRUE, 0
Posted on 2006-01-01 10:52:10 by ramguru
Thanks, both do work.
The latter seem more simple.
  RGS!
Posted on 2006-01-02 09:09:52 by Luckrock