Style is changed for linear buffer
| 846 | |
| 847 | // Style is changed for linear buffer |
| 848 | void RichTextarea::SetStyleToSelection(HWND wnd, unsigned int start, unsigned int end, int style) |
| 849 | { |
| 850 | TextareaData *data = GetData(wnd); |
| 851 | |
| 852 | // Simply set style to the specified range of symbols |
| 853 | for(unsigned int i = start; i <= end; i++) |
| 854 | data->areaTextEx[i] = (char)style; |
| 855 | maximumEnd = maximumEnd < end ? end : maximumEnd; |
| 856 | } |
| 857 | |
| 858 | // Function is called after setting style to text parts. It copies style information from linear buffer to AreaLine list |
| 859 | void RichTextarea::EndStyleUpdate(HWND wnd) |