| 552 | } |
| 553 | |
| 554 | void CFamiTrackerView::CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType) |
| 555 | { |
| 556 | // Window size has changed |
| 557 | m_iWindowWidth = lpClientRect->right - lpClientRect->left; |
| 558 | m_iWindowHeight = lpClientRect->bottom - lpClientRect->top; |
| 559 | |
| 560 | m_iWindowWidth -= ::GetSystemMetrics(SM_CXEDGE) * 2; |
| 561 | m_iWindowHeight -= ::GetSystemMetrics(SM_CYEDGE) * 2; |
| 562 | |
| 563 | m_pPatternEditor->SetWindowSize(m_iWindowWidth, m_iWindowHeight); |
| 564 | m_pPatternEditor->InvalidateBackground(); |
| 565 | // Update cursor since first visible channel might change |
| 566 | m_pPatternEditor->CursorUpdated(); |
| 567 | |
| 568 | CView::CalcWindowRect(lpClientRect, nAdjustType); |
| 569 | } |
| 570 | |
| 571 | // Scroll |
| 572 |
nothing calls this directly
no test coverage detected