Synchronize SetWindowLongPtr calls
This commit is contained in:
parent
914df12ebe
commit
0c28556f46
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ void IgnoreAllActivation(not_null<QWidget*> widget) {
|
||||||
|
|
||||||
ShowWindow(handle, SW_HIDE);
|
ShowWindow(handle, SW_HIDE);
|
||||||
const auto style = GetWindowLongPtr(handle, GWL_EXSTYLE);
|
const auto style = GetWindowLongPtr(handle, GWL_EXSTYLE);
|
||||||
SetWindowLong(
|
SetWindowLongPtr(
|
||||||
handle,
|
handle,
|
||||||
GWL_EXSTYLE,
|
GWL_EXSTYLE,
|
||||||
style | WS_EX_NOACTIVATE | WS_EX_APPWINDOW);
|
style | WS_EX_NOACTIVATE | WS_EX_APPWINDOW);
|
||||||
|
|
|
||||||
|
|
@ -213,7 +213,7 @@ void WindowShadow::init(QColor color) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ShadowByHandle.emplace(_handles[i], this);
|
ShadowByHandle.emplace(_handles[i], this);
|
||||||
SetWindowLongPtr(_handles[i], GWLP_HWNDPARENT, (LONG)_handle);
|
SetWindowLongPtr(_handles[i], GWLP_HWNDPARENT, (LONG_PTR)_handle);
|
||||||
|
|
||||||
_contexts[i] = CreateCompatibleDC(_screenContext);
|
_contexts[i] = CreateCompatibleDC(_screenContext);
|
||||||
if (!_contexts[i]) {
|
if (!_contexts[i]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue