GetProperty("Window", "HANDLE")
Posted: Sat Dec 03, 2016 9:11 pm
If a window is not defined, GetProperty("WindowName", "HANDLE") causes run-time error.
Maybe in this case the function should return 0?
Now in event handler I am using:
IF IsWindowDefined("WindowName") .and. (nHWnd == GetProperty("WindowName", "HANDLE"))
...
ENDIF
It could be shortened:
IF nHWnd == GetProperty("WindowName", "HANDLE")
...
ENDIF
Maybe in this case the function should return 0?
Now in event handler I am using:
IF IsWindowDefined("WindowName") .and. (nHWnd == GetProperty("WindowName", "HANDLE"))
...
ENDIF
It could be shortened:
IF nHWnd == GetProperty("WindowName", "HANDLE")
...
ENDIF