MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / BuildList

Method BuildList

ReClass/DialogClasses.cpp:33–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33void CDialogClasses::BuildList( )
34{
35 RECT listRect;
36 m_ClassViewList.GetWindowRect( &listRect );
37 m_ClassViewList.InsertColumn( 0, _T( "Class" ), LVCFMT_CENTER, listRect.right - listRect.left - 4 );
38
39 m_ImageList.Add( m_hClassIcon );
40
41 m_ClassViewList.SetImageList( &m_ImageList, LVSIL_SMALL );
42
43 for (size_t i = 0; i < g_ReClassApp.m_Classes.size( ); i++)
44 {
45 CString name = g_ReClassApp.m_Classes[i]->GetName( );
46 if (m_Filter.GetLength( ) != 0 && name.MakeUpper( ).Find( m_Filter.MakeUpper( ) ) == -1)
47 continue;
48 AddData( (int)i, 0, name );
49 }
50}
51
52void CDialogClasses::OnDblclkListControl( LPNMHDR pnmhdr, LRESULT *lpresult )
53{

Callers

nothing calls this directly

Calls 4

AddMethod · 0.80
GetLengthMethod · 0.80
sizeMethod · 0.45
FindMethod · 0.45

Tested by

no test coverage detected