Skip to content

Commit 17eff53

Browse files
authored
[REGEDIT] Add ES_AUTOHSCROLL to address bar window (reactos#7638)
Enable horizontal scroll on address bar. JIRA issue: CORE-19743 - Add ES_AUTOHSCROLL style to the address bar window on its creation.
1 parent 2da2fba commit 17eff53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/applications/regedit/childwnd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
388388
g_pChildWnd->nSplitPos = 190;
389389
g_pChildWnd->hWnd = hWnd;
390390

391-
style = WS_CHILD | WS_VISIBLE | WS_TABSTOP;
391+
/* ES_AUTOHSCROLL style enables horizontal scrolling and shrinking */
392+
style = WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL;
392393
g_pChildWnd->hAddressBarWnd = CreateWindowExW(WS_EX_CLIENTEDGE, L"Edit", NULL, style,
393394
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
394395
hWnd, (HMENU)0, hInst, 0);

0 commit comments

Comments
 (0)