更新时间:2022-06-22 07:57:49
如果要更改选择背景颜色,然后尝试:
If you want to change the selection background color, then try:
Win32.SendMessage(PluginBase.GetCurrentScintilla(),
SciMsg.SCI_SETSELBACK, 1, 0xFFFF00);
如果您要更改选择前景色,请尝试:
If you want to change the selection foreground color, then try:
Win32.SendMessage(PluginBase.GetCurrentScintilla(),
SciMsg.SCI_SETSELFORE, 1, 0xFF0000);
要重置默认颜色,请传递0
而不是1
.
To reset the default color, pass 0
instead of 1
.