POSITION CBCGPEditCtrl::SetLineColorMarker | ( | int | nRow = -1 , |
COLORREF | clrFore = (DWORD)-1 , |
||
COLORREF | clrBk = (DWORD)-1 , |
||
BOOL | bFullLine = TRUE , |
||
int | nLineCount = 0 , |
||
DWORD | dwMarkerType = g_dwBCGPEdit_LineColorMarker , |
||
UINT | unPriority = 0 , |
||
LPVOID | pData = NULL , |
||
BOOL | bAutoDarkBackground = FALSE |
||
) |
Sets a new line color marker.
Call this function to highlight the specified line or several lines (if nLineCount is greater than 0). As a result, a new marker of g_dwBCGPEdit_LineColorMarker type is created and added into the internal list of markers.
nRow | The zero-based number of row to set the marker at. |
clrFore | Specifies the marker foreground color. |
clrBk | Specifies the marker background color. |
bFullLine | If TRUE, the line will be colored up to the right edge of the edit control. If FALSE, the line will be colored up to the end of text on the specified row (s). |
nLineCount | Specifies the number of rows to highlight. If this value is 0, only one row (specified by nRow) will be highlighted, If this value is 1 - two rows, if 2 - three rows, etc. |
dwMarkerType | Specifies the marker type. This value will be combined with g_dwBCGPEdit_LineColorMarker. |
unPriority | Specifies the marker drawing priority (the higher number means drawing the marker on top). |
pData | Specifies the optional custom data associated with this marker. |
bAutoDarkBackground | Specifies whether the colors will be automatically inverted in the dark themes. |