| 332 | } |
| 333 | |
| 334 | int CDialogModules::AddData( int Index, LPCTSTR ModuleName, LPCTSTR ModulePath, LPCTSTR StartAddress, LPCTSTR EndAddress, LPCTSTR ModuleSize, LPARAM lParam ) |
| 335 | { |
| 336 | LVITEM lvi; |
| 337 | int pos = 0; |
| 338 | |
| 339 | ZeroMemory( &lvi, sizeof( LVITEM ) ); |
| 340 | lvi.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM; |
| 341 | lvi.pszText = (LPTSTR)ModuleName; |
| 342 | lvi.cchTextMax = static_cast<int>(_tcslen( ModuleName )) + 1; |
| 343 | lvi.iImage = Index; |
| 344 | lvi.lParam = lParam; |
| 345 | lvi.iItem = m_ModuleList.GetItemCount( ); |
| 346 | |
| 347 | pos = m_ModuleList.InsertItem( &lvi ); |
| 348 | |
| 349 | m_ModuleList.SetItemText( pos, COLUMN_PATH, (LPCTSTR)ModulePath ); |
| 350 | m_ModuleList.SetItemText( pos, COLUMN_START, (LPCTSTR)StartAddress ); |
| 351 | m_ModuleList.SetItemText( pos, COLUMN_END, (LPCTSTR)EndAddress ); |
| 352 | m_ModuleList.SetItemText( pos, COLUMN_SIZE, (LPCTSTR)ModuleSize ); |
| 353 | |
| 354 | return pos; |
| 355 | } |
| 356 | |
| 357 | void CDialogModules::OnEnChangeModuleName( ) |
| 358 | { |
nothing calls this directly
no outgoing calls
no test coverage detected