Skip to content

Commit

Permalink
MemoryView tabs (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Oct 9, 2023
1 parent 129451b commit af0f1cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions emulator/MemoryView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,13 @@ void MemoryView_AdjustWindowLayout()
if (m_hwndMemoryTab != (HWND)INVALID_HANDLE_VALUE)
SetWindowPos(m_hwndMemoryTab, NULL, 0, 0, rc.right, rc.bottom, SWP_NOZORDER);

TabCtrl_AdjustRect(m_hwndMemoryTab, FALSE, &rc);
::InflateRect(&rc, -4, -4);

if (m_hwndMemoryViewer != (HWND) INVALID_HANDLE_VALUE)
SetWindowPos(m_hwndMemoryViewer, NULL, 4, 28, rc.right, rc.bottom - 28, SWP_NOZORDER);
SetWindowPos(m_hwndMemoryViewer, NULL, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, SWP_NOZORDER);
if (m_hwndProcessListViewer != (HWND)INVALID_HANDLE_VALUE)
SetWindowPos(m_hwndProcessListViewer, NULL, 4, 28, rc.right, rc.bottom - 28, SWP_NOZORDER);
SetWindowPos(m_hwndProcessListViewer, NULL, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, SWP_NOZORDER);
}

LRESULT CALLBACK MemoryViewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Expand Down

0 comments on commit af0f1cf

Please sign in to comment.