| 781 | } |
| 782 | |
| 783 | LRESULT CMainFrame::OnDeleteTab(NMHDR* pnmh) |
| 784 | { |
| 785 | auto& nmhdr = *reinterpret_cast<NMCTCITEM*>(pnmh); |
| 786 | |
| 787 | if (nmhdr.iItem >= 0 && nmhdr.iItem < GetViewCount()) |
| 788 | GetView(nmhdr.iItem).DestroyWindow(); |
| 789 | |
| 790 | return FALSE; |
| 791 | } |
| 792 | |
| 793 | void CMainFrame::OnFileNewTab(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/) |
| 794 | { |
nothing calls this directly
no outgoing calls
no test coverage detected