Kuck dir mal im
MSDN WM_SETTEXT Message an.
Nachtrag:

Zitat von
MSDN:
An application sends a WM_SETTEXT message to set the text of a window.
Außerdem ein TEdit ist halt ein EDIT und kein BUTTON, sonst sollte der Quelltext so ungefähr der gleiche sein (habe ihn mir nicht so genau angekuckt.)