mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Cleanup.
This commit is contained in:
parent
2ec8cb802b
commit
9f6675206d
1 changed files with 1 additions and 28 deletions
|
@ -530,7 +530,7 @@ namespace entry
|
||||||
, msg->m_y
|
, msg->m_y
|
||||||
, msg->m_width
|
, msg->m_width
|
||||||
, msg->m_height
|
, msg->m_height
|
||||||
, m_hwnd[0]
|
, NULL
|
||||||
, NULL
|
, NULL
|
||||||
, (HINSTANCE)GetModuleHandle(NULL)
|
, (HINSTANCE)GetModuleHandle(NULL)
|
||||||
, 0
|
, 0
|
||||||
|
@ -914,33 +914,6 @@ namespace entry
|
||||||
top = newrect.top +(newrect.bottom-newrect.top-height)/2;
|
top = newrect.top +(newrect.bottom-newrect.top-height)/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
HWND parent = GetWindow(_hwnd, GW_OWNER);
|
|
||||||
if (NULL != parent)
|
|
||||||
{
|
|
||||||
if (_windowFrame)
|
|
||||||
{
|
|
||||||
SetWindowPos(parent
|
|
||||||
, HWND_TOP
|
|
||||||
, -32000
|
|
||||||
, -32000
|
|
||||||
, 0
|
|
||||||
, 0
|
|
||||||
, SWP_SHOWWINDOW
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetWindowPos(parent
|
|
||||||
, HWND_TOP
|
|
||||||
, newrect.left
|
|
||||||
, newrect.top
|
|
||||||
, newrect.right-newrect.left
|
|
||||||
, newrect.bottom-newrect.top
|
|
||||||
, SWP_SHOWWINDOW
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SetWindowPos(_hwnd
|
SetWindowPos(_hwnd
|
||||||
, HWND_TOP
|
, HWND_TOP
|
||||||
, left
|
, left
|
||||||
|
|
Loading…
Reference in a new issue