From 5bf28965e8a72ffad893258767326acab4d675fe Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Mon, 6 Jan 2025 23:13:34 -0500 Subject: [PATCH] corrected coordinates display of status bar's --- MissionEditor/IsoView.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/MissionEditor/IsoView.cpp b/MissionEditor/IsoView.cpp index 7614d61..8e3047a 100644 --- a/MissionEditor/IsoView.cpp +++ b/MissionEditor/IsoView.cpp @@ -1585,22 +1585,13 @@ void CIsoView::OnMouseMove(UINT nFlags, CPoint point) - // display the coordinates - char c[50]; + // display the coordinates CString cap; - itoa(x, c, 10); - cap += c; - cap += " / "; - itoa(y, c, 10); - cap += c; - cap += " - "; - itoa(Map->GetHeightAt(x + y * Map->GetIsoSize()), c, 10); - cap += c; + cap.Format("XY: %d, %d H: %d", y, x, Map->GetHeightAt(x + y * Map->GetIsoSize())); CStatusBarCtrl& stat = ((CMyViewFrame*)owner)->m_statbar.GetStatusBarCtrl(); stat.SetText(cap, 1, 0); - // drag if (m_drag && AD.mode == 0) { RedrawWindow(NULL, NULL, RDW_INVALIDATE);