可否读取CEdit是否是只读状态

能否读取CEdit是否是只读状态?
用SetReadOnly可以设置只读。

但是通过什么方法判断这个控件在只读状态呢?

我需要通过点击另外的控件往一个CEdit自动填入内容,如果是只读就不填。

------解决方案--------------------
ES_READONLY 只读是这个属性
GetStyle获取所有属性,然后和ES_READONLY按位与一下,结果非0就是有只读属性
------解决方案--------------------
EM_SETREADONLY
Remark:
When an edit control has the ES_READONLY style, the user cannot change the text within the edit control. To determine whether an edit control has the ES_READONLY style, use the GetWindowLong function with the GWL_STYLE flag.
------解决方案--------------------
引用:
EM_SETREADONLY
Remark:
When an edit control has the ES_READONLY style, the user cannot change the text within the edit control. To determine whether an edit control has the ES_READONLY style, use the GetWindowLong function with the GWL_STYLE flag.
可否读取CEdit是否是只读状态