mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 09:01:41 -04:00
corrected coordinates display of status bar's
This commit is contained in:
parent
770b1ac36a
commit
5bf28965e8
1 changed files with 2 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue