============================================================================= Style_SetLongLineColors()
| 2022 | // Style_SetLongLineColors() |
| 2023 | // |
| 2024 | void 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 | //============================================================================= |
no test coverage detected