void set(PixelScalar left, PixelScalar top, UPixelScalar width, UPixelScalar height) { SingleWindow::set(_T("RunMapWindow"), _T("RunMapWindow"), left, top, width, height); PixelRect rc = get_client_rect(); map.set(*this, rc); map.SetWaypoints(&way_points); map.SetAirspaces(&airspace_database); map.SetTopography(topography); map.SetTerrain(terrain); if (terrain != NULL) map.SetLocation(terrain->GetTerrainCenter()); rc.left = 5; rc.top = 5; rc.right = rc.left + 60; rc.bottom = rc.top + 20; close_button.set(*this, _T("Close"), ID_CLOSE, rc); close_button.set_font(Fonts::map); close_button.bring_to_top(); }