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

Function Style_GetOpenDlgFilterStr

src/Styles.c:2361–2371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2359extern WCHAR tchFileDlgFilters[5 * 1024];
2360
2361BOOL Style_GetOpenDlgFilterStr ( LPWSTR lpszFilter, int cchFilter )
2362{
2363 if ( lstrlen ( tchFileDlgFilters ) == 0 ) {
2364 GetString ( IDS_FILTER_ALL, lpszFilter, cchFilter );
2365 } else {
2366 lstrcpyn ( lpszFilter, tchFileDlgFilters, cchFilter - 2 );
2367 lstrcat ( lpszFilter, L"||" );
2368 }
2369 PrepareFilterStr ( lpszFilter );
2370 return TRUE;
2371}
2372
2373
2374//=============================================================================

Callers 2

OpenFileDlgFunction · 0.85
SaveFileDlgFunction · 0.85

Calls 1

PrepareFilterStrFunction · 0.85

Tested by

no test coverage detected