[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.
This commit is contained in:
Katayama Hirofumi MZ 2025-01-20 01:01:30 +09:00 committed by GitHub
parent 2da2fba042
commit 17eff53f35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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