regedit: Clip siblings when drawing list and tree views.
This commit is contained in:
parent
8242b65172
commit
36ca172e85
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue