| 1296 | } |
| 1297 | |
| 1298 | void CMainFrame::CloseView(int i) |
| 1299 | { |
| 1300 | int views = GetViewCount(); |
| 1301 | if (i >= 0 && i < views) |
| 1302 | { |
| 1303 | GetTabCtrl().DeleteItem(i, false); |
| 1304 | GetTabCtrl().SetCurSel(i == views - 1 ? i - 1 : i); |
| 1305 | if (GetViewCount() == 1) |
| 1306 | HideTabControl(); |
| 1307 | } |
| 1308 | } |
| 1309 | |
| 1310 | void CMainFrame::OnViewFind(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/) |
| 1311 | { |
nothing calls this directly
no test coverage detected