https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ac507691fb31d4dbf70b4…
commit ac507691fb31d4dbf70b458a76dd46da26041edf
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sun Mar 14 12:28:48 2021 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Sun Mar 14 12:28:48 2021 +0900
[SDK][INCLUDE] layout.h: Use SWP_NOCOPYBITS to refresh controls
---
sdk/include/reactos/layout.h | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/sdk/include/reactos/layout.h b/sdk/include/reactos/layout.h
index 3403ba06b3e..7ef6d658f84 100644
--- a/sdk/include/reactos/layout.h
+++ b/sdk/include/reactos/layout.h
@@ -45,7 +45,7 @@ _layout_MoveGrip(LAYOUT_DATA *pData, HDWP hDwp OPTIONAL)
return hDwp;
SIZE size = { GetSystemMetrics(SM_CXVSCROLL), GetSystemMetrics(SM_CYHSCROLL) };
- const UINT uFlags = SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER;
+ const UINT uFlags = SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER |
SWP_NOCOPYBITS;
RECT rcClient;
GetClientRect(pData->m_hwndParent, &rcClient);
@@ -117,7 +117,7 @@ _layout_DoMoveItem(LAYOUT_DATA *pData, HDWP hDwp, const LAYOUT_INFO
*pLayout,
{
hDwp = DeferWindowPos(hDwp, pLayout->m_hwndCtrl, NULL, NewRect.left,
NewRect.top,
NewRect.right - NewRect.left, NewRect.bottom -
NewRect.top,
- SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION);
+ SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION |
SWP_NOCOPYBITS);
}
return hDwp;
}
@@ -138,18 +138,6 @@ _layout_ArrangeLayout(LAYOUT_DATA *pData)
hDwp = _layout_MoveGrip(pData, hDwp);
EndDeferWindowPos(hDwp);
-
- /* STATIC controls need refreshing. */
- for (iItem = 0; iItem < pData->m_cLayouts; ++iItem)
- {
- HWND hwndCtrl = pData->m_pLayouts[iItem].m_hwndCtrl;
- WCHAR szClass[8];
- GetClassNameW(hwndCtrl, szClass, _countof(szClass));
- if (lstrcmpiW(szClass, L"STATIC") == 0)
- {
- InvalidateRect(hwndCtrl, NULL, TRUE);
- }
- }
}
static __inline void