那就不在界面上设置,都有代码来处理 GetDlgItem(ID_EDIT)->EnableWindow(FALSE);//只读。 GetDlgItem(ID_EDIT)->EnableWindow(TRUE);//取消只读。