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

Method AddData

ReClass/DialogModulesBACKUP.cpp:237–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237int CDialogModules::AddData(int Index, LPTSTR ModuleName, LPTSTR StartAddress, LPTSTR EndAddress, LPTSTR ModuleSize, LPARAM lParam)
238{
239 LVITEM lvi = { 0 };
240
241 lvi.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM;
242
243 lvi.pszText = ModuleName;
244 lvi.cchTextMax = static_cast<int>(_tcslen(ModuleName)) + 1;
245 lvi.iImage = Index;
246 lvi.lParam = lParam;
247 lvi.iItem = m_ModuleViewList.GetItemCount();
248
249 int pos = m_ModuleViewList.InsertItem(&lvi);
250
251 m_ModuleViewList.SetItemText(pos, COLUMN_START, (LPTSTR)StartAddress);
252 m_ModuleViewList.SetItemText(pos, COLUMN_END, (LPTSTR)EndAddress);
253 m_ModuleViewList.SetItemText(pos, COLUMN_SIZE, (LPTSTR)ModuleSize);
254
255 return pos;
256}
257
258void CDialogModules::OnEnChangeModuleName()
259{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected