MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Style_SetLongLineColors

Function Style_SetLongLineColors

src/Styles.c:2024–2042  ·  view source on GitHub ↗

============================================================================= Style_SetLongLineColors()

Source from the content-addressed store, hash-verified

2022// Style_SetLongLineColors()
2023//
2024void Style_SetLongLineColors ( HWND hwnd )
2025{
2026 int rgb;
2027 // Use 2nd default style
2028 int iIdx = ( bUse2ndDefaultStyle ) ? 12 : 0;
2029 if ( SendMessage ( hwnd, SCI_GETEDGEMODE, 0, 0 ) == EDGE_LINE ) {
2030 if ( Style_StrGetColor ( TRUE, lexDefault.Styles[10 + iIdx].szValue, &rgb ) ) { // edge fore
2031 SendMessage ( hwnd, SCI_SETEDGECOLOUR, rgb, 0 );
2032 } else {
2033 SendMessage ( hwnd, SCI_SETEDGECOLOUR, GetSysColor ( COLOR_3DLIGHT ), 0 );
2034 }
2035 } else {
2036 if ( Style_StrGetColor ( FALSE, lexDefault.Styles[10 + iIdx].szValue, &rgb ) ) { // edge back
2037 SendMessage ( hwnd, SCI_SETEDGECOLOUR, rgb, 0 );
2038 } else {
2039 SendMessage ( hwnd, SCI_SETEDGECOLOUR, GetSysColor ( COLOR_3DLIGHT ), 0 );
2040 }
2041 }
2042}
2043
2044
2045//=============================================================================

Callers 1

MsgCommandFunction · 0.85

Calls 1

Style_StrGetColorFunction · 0.85

Tested by

no test coverage detected