If API uses SendMessage internally, this is written in MSDN, for example, see SetWindowText.