MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / Initialize

Method Initialize

SampleApps/WebView2APISample/CustomStatusBar.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void CustomStatusBar::Initialize(AppWindow* appWindow)
20{
21 m_appWindow = appWindow;
22 HWND mainWindow = m_appWindow->GetMainWindow();
23
24 int width = 600;
25 int height = 70;
26 int x = 50;
27 int y = 50;
28
29
30 m_statusBarWindow = CreateWindow(
31 L"Edit", L"", WS_CHILD | WS_BORDER | ES_READONLY, x, y, width, height, mainWindow,
32 nullptr, nullptr, 0);
33
34 BringWindowToTop(m_statusBarWindow);
35}
36
37void CustomStatusBar::Show(std::wstring value)
38{

Callers

nothing calls this directly

Calls 1

GetMainWindowMethod · 0.45

Tested by

no test coverage detected