Module: wine Branch: master Commit: 36ca172e85bf518faab581cc9b849fc79cfe6819 URL: https://gitlab.winehq.org/wine/wine/-/commit/36ca172e85bf518faab581cc9b849fc...
Author: Jinoh Kang jinoh.kang.kr@gmail.com Date: Thu Dec 22 01:50:38 2022 +0900
regedit: Clip siblings when drawing list and tree views.
---
programs/regedit/listview.c | 3 ++- programs/regedit/treeview.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c index 159efc0218f..c7a301929c2 100644 --- a/programs/regedit/listview.c +++ b/programs/regedit/listview.c @@ -361,7 +361,8 @@ HWND CreateListView(HWND hwndParent, UINT id) /* Get the dimensions of the parent window's client area, and create the list view control. */ GetClientRect(hwndParent, &rcClient); hwndLV = CreateWindowExW(WS_EX_CLIENTEDGE, WC_LISTVIEWW, L"List View", - WS_VISIBLE | WS_CHILD | WS_TABSTOP | LVS_REPORT | LVS_EDITLABELS, + WS_VISIBLE | WS_CHILD | WS_TABSTOP | WS_CLIPSIBLINGS | + LVS_REPORT | LVS_EDITLABELS, 0, 0, rcClient.right, rcClient.bottom, hwndParent, ULongToHandle(id), hInst, NULL); if (!hwndLV) return NULL; diff --git a/programs/regedit/treeview.c b/programs/regedit/treeview.c index cd80449999a..e0cac006090 100644 --- a/programs/regedit/treeview.c +++ b/programs/regedit/treeview.c @@ -696,7 +696,8 @@ HWND CreateTreeView(HWND hwndParent, LPWSTR pHostName, UINT id) /* Get the dimensions of the parent window's client area, and create the tree view control. */ GetClientRect(hwndParent, &rcClient); hwndTV = CreateWindowExW(WS_EX_CLIENTEDGE, WC_TREEVIEWW, L"Tree View", - WS_VISIBLE | WS_CHILD | WS_TABSTOP | TVS_HASLINES | TVS_HASBUTTONS | + WS_VISIBLE | WS_CHILD | WS_TABSTOP | WS_CLIPSIBLINGS | + TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT | TVS_EDITLABELS | TVS_SHOWSELALWAYS, 0, 0, rcClient.right, rcClient.bottom, hwndParent, ULongToHandle(id), hInst, NULL);