MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnCopyAll

Method OnCopyAll

WinArk/EtwView.cpp:597–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597LRESULT CEtwView::OnCopyAll(WORD, WORD, HWND, BOOL&) {
598 ATLASSERT(!m_IsMonitoring || GetFrame()->GetTraceManager().IsPaused());
599 CWaitCursor wait;
600 auto count = m_List.GetItemCount();
601 CString text, item;
602 for (int i = 0; i < count; i++) {
603 for (int c = 0;; c++) {
604 if (!m_List.GetItemText(i, c, item))
605 break;
606 text += item + L",";
607 }
608 text.SetAt(text.GetLength() - 1, L'\n');
609 }
610 ClipboardHelper::CopyText(*this, text);
611 return 0;
612}
613
614LRESULT CEtwView::OnConfigureEvents(WORD, WORD, HWND, BOOL&) {
615 CEventsDlg dlg(m_EventsConfig);

Callers

nothing calls this directly

Calls 3

IsPausedMethod · 0.80
SetAtMethod · 0.80
GetLengthMethod · 0.45

Tested by

no test coverage detected