| 655 | } |
| 656 | |
| 657 | LRESULT CEtwView::OnConfigFilters(WORD, WORD, HWND, BOOL&) { |
| 658 | CFiltersDlg dlg(m_FilterConfig); |
| 659 | if (dlg.DoModal() == IDOK) { |
| 660 | // update filters |
| 661 | auto& tm = GetFrame()->GetTraceManager(); |
| 662 | auto paused = tm.IsRunning() && tm.IsPaused(); |
| 663 | if (!paused) |
| 664 | tm.Pause(true); |
| 665 | ApplyFilters(m_FilterConfig); |
| 666 | if (!paused) |
| 667 | tm.Pause(false); |
| 668 | } |
| 669 | return 0; |
| 670 | } |
| 671 | |
| 672 | LRESULT CEtwView::OnItemChanged(int, LPNMHDR, BOOL&) { |
| 673 | UpdateUI(); |