|Windows with Delphi|
Windows API (94)
Windows Filesystem (41)
Windows Forms (69)
Windows Graphics (38)
About this site
Links to us
Difference between WM_GETTEXT and GetWindowText?
This article has not been rated yet. After reading, feel free to leave comments and rate it.
What is the difference between sending message WM_GETTEXT and calling GetWindowText()?
You can send WM_GETTEXTLENGTH and WM_GETTEXT message even across processes.
GetWindowText takes shortcuts, it tries to directly pass a WM_GETTEXT message to the target windows window function instead of using SendMessage. That does not work across process boundaries.