Remember that "SendMessage ..." API function has its "CONTROL SEND ..." version.
For example :
[code=thinbasic] SendMessage hEdit, %EM_SETBKGNDCOLOR, 0, lColor[/code]
if the same of
[code=thinbasic] CONTROL SEND hDlg, %ID_Editor, %EM_SETBKGNDCOLOR, 0, lColor[/code]
They do exactly the same.
The difference is that SendMessage needs the internal window handle of the control while CONTROL SEND needs the handle of the window you have created plus your control id.
Bookmarks