Skip to content

Commit

Permalink
This is a rudimentary test of #603.
Browse files Browse the repository at this point in the history
  This is really weird ; refer to the thread for more details.
  • Loading branch information
zadjii-msft committed Nov 11, 2019
1 parent db79758 commit b1eb406
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/cascadia/WindowsTerminal/IslandWindow.cpp
Expand Up @@ -51,17 +51,18 @@ void IslandWindow::MakeWindow() noexcept
// Create the window with the default size here - During the creation of the
// window, the system will give us a chance to set its size in WM_CREATE.
// WM_CREATE will be handled synchronously, before CreateWindow returns.
WINRT_VERIFY(CreateWindow(wc.lpszClassName,
L"Windows Terminal",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
nullptr,
nullptr,
wc.hInstance,
this));
WINRT_VERIFY(CreateWindowEx(WS_EX_LAYERED,
wc.lpszClassName,
L"Windows Terminal",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
nullptr,
nullptr,
wc.hInstance,
this));

WINRT_ASSERT(_window);
}
Expand Down Expand Up @@ -124,6 +125,8 @@ void IslandWindow::_HandleCreateWindow(const WPARAM, const LPARAM lParam) noexce

ShowWindow(_window.get(), nCmdShow);
UpdateWindow(_window.get());

SetLayeredWindowAttributes(_window.get(), 0, 128, LWA_ALPHA);
}

void IslandWindow::Initialize()
Expand Down

0 comments on commit b1eb406

Please sign in to comment.