MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / CalcWindowRect

Method CalcWindowRect

Source/FamiTrackerView.cpp:554–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554void 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

Callers

nothing calls this directly

Calls 3

SetWindowSizeMethod · 0.80
InvalidateBackgroundMethod · 0.80
CursorUpdatedMethod · 0.80

Tested by

no test coverage detected