From 17eff53f35e72e661532a66da0879d71e2ff4be8 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 20 Jan 2025 01:01:30 +0900 Subject: [PATCH] [REGEDIT] Add ES_AUTOHSCROLL to address bar window (#7638) Enable horizontal scroll on address bar. JIRA issue: CORE-19743 - Add ES_AUTOHSCROLL style to the address bar window on its creation. --- base/applications/regedit/childwnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/applications/regedit/childwnd.c b/base/applications/regedit/childwnd.c index b08736e5322..1cd0dc787ed 100644 --- a/base/applications/regedit/childwnd.c +++ b/base/applications/regedit/childwnd.c @@ -388,7 +388,8 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa g_pChildWnd->nSplitPos = 190; g_pChildWnd->hWnd = hWnd; - style = WS_CHILD | WS_VISIBLE | WS_TABSTOP; + /* ES_AUTOHSCROLL style enables horizontal scrolling and shrinking */ + style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL; g_pChildWnd->hAddressBarWnd = CreateWindowExW(WS_EX_CLIENTEDGE, L"Edit", NULL, style, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, hWnd, (HMENU)0, hInst, 0);