S stone99 Unregistered / Unconfirmed GUEST, unregistred user! 2005-09-27 #1 例如:如果只知道TEDIT控件的Handle,如何获取TEDIT控件的ReadOnly属性值?
S stone99 Unregistered / Unconfirmed GUEST, unregistred user! 2005-09-27 #2 例如:如果只知道TEDIT控件的Handle,如何获取TEDIT控件的ReadOnly属性值?
L lichengbin Unregistered / Unconfirmed GUEST, unregistred user! 2005-09-27 #3 if GetWindowLong(Edit1.Handle, GWL_STYLE) and ES_READONLY = ES_READONLY then
S shine007 Unregistered / Unconfirmed GUEST, unregistred user! 2005-09-27 #4 var i: HWND;<br>begin<br> i := Edit1.Handle;<br> if TEdit(FindControl(i)).ReadOnly then<br> ShowMessage('ReadOnly')<br> else<br> ShowMessage('Not ReadOnly');
var i: HWND;<br>begin<br> i := Edit1.Handle;<br> if TEdit(FindControl(i)).ReadOnly then<br> ShowMessage('ReadOnly')<br> else<br> ShowMessage('Not ReadOnly');