Revert "messing with making the drag recy not a child. That did nothing"
This reverts commit dfcdefddee
.
This commit is contained in:
parent
dfcdefddee
commit
9714bf543b
|
@ -72,20 +72,19 @@ void NonClientIslandWindow::MakeWindow() noexcept
|
||||||
// right on top of the drag bar. The XAML island window "steals" our mouse
|
// right on top of the drag bar. The XAML island window "steals" our mouse
|
||||||
// messages which makes it hard to implement a custom drag area. By putting
|
// messages which makes it hard to implement a custom drag area. By putting
|
||||||
// a window on top of it, we prevent it from "stealing" the mouse messages.
|
// a window on top of it, we prevent it from "stealing" the mouse messages.
|
||||||
_dragBarWindow.reset(CreateWindowExW(0, //WS_EX_LAYERED | WS_EX_NOREDIRECTIONBITMAP,
|
_dragBarWindow.reset(CreateWindowExW(WS_EX_LAYERED | WS_EX_NOREDIRECTIONBITMAP,
|
||||||
dragBarClassName,
|
dragBarClassName,
|
||||||
L"",
|
L"",
|
||||||
WS_OVERLAPPED,// 0, //WS_CHILD,
|
WS_CHILD,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
HWND_DESKTOP, // HWND_MESSAGE, //GetHandle(),
|
GetHandle(),
|
||||||
nullptr,
|
nullptr,
|
||||||
wil::GetModuleInstanceHandle(),
|
wil::GetModuleInstanceHandle(),
|
||||||
this));
|
this));
|
||||||
THROW_LAST_ERROR_IF_NULL(_dragBarWindow);
|
THROW_HR_IF_NULL(E_UNEXPECTED, _dragBarWindow);
|
||||||
// THROW_HR_IF_NULL(E_UNEXPECTED, _dragBarWindow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function Description:
|
// Function Description:
|
||||||
|
|
Loading…
Reference in a new issue