removed code for debugging
This commit is contained in:
parent
81018fc84b
commit
7711a336db
|
@ -185,11 +185,7 @@ bool AlwaysOnTop::OrderWindows() const noexcept
|
||||||
BOOL res = true;
|
BOOL res = true;
|
||||||
for (int i = static_cast<int>(m_topmostWindows.size()) - 1; i >= 0; i--)
|
for (int i = static_cast<int>(m_topmostWindows.size()) - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
auto cTxtLen = GetWindowTextLength(m_topmostWindows[i]);
|
res &= SetWindowPos(m_topmostWindows[i], nullptr, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOREDRAW);
|
||||||
auto pszMem = (LPWSTR)VirtualAlloc((LPVOID)NULL, (DWORD)(cTxtLen + 1), MEM_COMMIT, PAGE_READWRITE);
|
|
||||||
GetWindowText(m_topmostWindows[i], pszMem, cTxtLen + 1);
|
|
||||||
|
|
||||||
res &= SetWindowPos(m_topmostWindows[i], nullptr, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOREDRAW | SWP_DRAWFRAME);
|
|
||||||
|
|
||||||
if (!res)
|
if (!res)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue