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

Function Style_AddLexerToListView

src/Styles.c:2999–3014  ·  view source on GitHub ↗

============================================================================= Style_AddLexerToListView()

Source from the content-addressed store, hash-verified

2997// Style_AddLexerToListView()
2998//
2999void Style_AddLexerToListView ( HWND hwnd, PEDITLEXER plex )
3000{
3001 WCHAR tch[128];
3002 LVITEM lvi;
3003 ZeroMemory ( &lvi, sizeof ( LVITEM ) );
3004 lvi.mask = LVIF_IMAGE | LVIF_PARAM | LVIF_TEXT;
3005 lvi.iItem = ListView_GetItemCount ( hwnd );
3006 if ( GetString ( plex->rid, tch, COUNTOF ( tch ) ) ) {
3007 lvi.pszText = tch;
3008 } else {
3009 lvi.pszText = plex->pszName;
3010 }
3011 lvi.iImage = Style_GetLexerIconId ( plex );
3012 lvi.lParam = ( LPARAM ) plex;
3013 ListView_InsertItem ( hwnd, &lvi );
3014}
3015
3016
3017//=============================================================================

Callers 1

Style_SelectLexerDlgProcFunction · 0.85

Calls 1

Style_GetLexerIconIdFunction · 0.85

Tested by

no test coverage detected