Reading an ET Protected property (OpenInsight 32-Bit)
At 24 NOV 2008 01:35:50PM John Bouley wrote:
I am trying to determine if an ET is protected or not by using this code:
Equate WM_User$ to 1024
equate DTM_GETEDITHWND$ to (WM_USER$+171)
ETHandle=get_property( ctrlEntID, "HANDLE" )
ETProtected=SendMessage( etHandle, DTM_GETEDITHWND$, 0, 0 )
debug
No matter what ET is looked at ETProtected is always 0.
Any ideas?
Thanks,
John
At 24 NOV 2008 01:46PM John Bouley wrote:
Never mind.
I found another sample that actually works…
style=iconv( Get_Property( ctrlEntID, "STYLE")3,\00\,"MX" )
ETProtected=( bitAnd( style, DTS_EDIT$) # 0 )
Thanks,
John