Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links 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.
Question:
What is the difference between sending message WM_GETTEXT and calling GetWindowText()?
Answer:
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.
Comments:
|