ErosOlmi
21-09-2006, 02:34
To change backgound color of a rich edit control area.
To do it, just send the following message to the richedit control, where lColor is the color number you want to assign to the control:
sendmessage hEdit, %EM_SETBKGNDCOLOR, 0, lColor
An example getting color from standard color dialog:
lColor = Dialog_ChooseColor(hDlg, rgb(255, 0, 0), %CC_RGBINIT OR %CC_FULLOPEN )
if lColor <> -1 then
sendmessage hEdit, %EM_SETBKGNDCOLOR, 0, lColor
end if
Here it is a Microsoft reference page on rich edit notification message list:
http://windowssdk.msdn.microsoft.com/en-us/library/ms651298.aspx
To do it, just send the following message to the richedit control, where lColor is the color number you want to assign to the control:
sendmessage hEdit, %EM_SETBKGNDCOLOR, 0, lColor
An example getting color from standard color dialog:
lColor = Dialog_ChooseColor(hDlg, rgb(255, 0, 0), %CC_RGBINIT OR %CC_FULLOPEN )
if lColor <> -1 then
sendmessage hEdit, %EM_SETBKGNDCOLOR, 0, lColor
end if
Here it is a Microsoft reference page on rich edit notification message list:
http://windowssdk.msdn.microsoft.com/en-us/library/ms651298.aspx