https://git.reactos.org/?p=reactos.git;a=commitdiff;h=17eff53f35e72e661532a66da0879d71e2ff4be8

commit 17eff53f35e72e661532a66da0879d71e2ff4be8
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Mon Jan 20 01:01:30 2025 +0900
Commit:     GitHub <[email protected]>
CommitDate: Mon Jan 20 01:01:30 2025 +0900

    [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);

Reply via email to