mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
MiniMap dialog works as a child window now (#125)
This commit is contained in:
parent
473eef415d
commit
51ec33af31
7 changed files with 21 additions and 20 deletions
|
@ -96,9 +96,10 @@ BOOL CMyViewFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
|
|||
|
||||
// the minimap is not a child window right now, but it is created here though
|
||||
auto miniMapClass = AfxRegisterWndClass(0, m_hArrowCursor, static_cast<HBRUSH>(::GetStockObject(GRAY_BRUSH)));
|
||||
m_minimap.CreateEx(0, miniMapClass, "Minimap", WS_POPUPWINDOW | WS_CAPTION | WS_VISIBLE, r, NULL, 0);
|
||||
//m_minimap.Create(NULL, "Minimap", WS_OVERLAPPED)
|
||||
m_minimap.UpdateView();
|
||||
m_minimap = std::make_unique<CMiniMap>();
|
||||
m_minimap->CreateEx(0, miniMapClass, "Minimap", WS_CAPTION | WS_VISIBLE | WS_CHILD, r, this, 0);
|
||||
m_minimap->ModifyStyle(WS_MINIMIZEBOX | WS_MAXIMIZEBOX, 0);
|
||||
m_minimap->UpdateView();
|
||||
|
||||
if (!m_statbar.CreateEx(this, SBARS_SIZEGRIP | SBT_TOOLTIPS)) return FALSE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue