============================================================================= Style_AddLexerToListView()
| 2997 | // Style_AddLexerToListView() |
| 2998 | // |
| 2999 | void 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 | //============================================================================= |
no test coverage detected