Skip to content

Commit

Permalink
Add ES_AUTOHSCROLL style to WebVIew2APISample address bar
Browse files Browse the repository at this point in the history
Currently in the WebVIew2APISample address bar doesn't allow user to enter a really long URL (limited by width of window). Adding `ES_AUTOHSCROLL` style fixes the problem.
  • Loading branch information
kielby committed Jun 7, 2024
1 parent 906135e commit 73a0b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SampleApps/WebView2APISample/Toolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ void Toolbar::Initialize(AppWindow* appWindow)
L"button", L"Cancel", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 0, 0, 0, 0,
mainWindow, (HMENU)IDE_CANCEL, nullptr, 0);
m_items[Item_AddressBar] = CreateWindow(
L"edit", nullptr, WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 0, 0, 0, 0,
mainWindow, (HMENU)IDE_ADDRESSBAR, nullptr, 0);
L"edit", nullptr, WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL,
0, 0, 0, 0, mainWindow, (HMENU)IDE_ADDRESSBAR, nullptr, 0);
m_items[Item_GoButton] = CreateWindow(
L"button", L"Go", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | BS_DEFPUSHBUTTON,
0, 0, 0, 0, mainWindow, (HMENU)IDE_ADDRESSBAR_GO, nullptr, 0);
Expand Down

0 comments on commit 73a0b58

Please sign in to comment.