Synchronize SetWindowLongPtr calls

This commit is contained in:
Ilya Fedin 2020-10-25 04:56:30 +04:00 committed by John Preston
parent 914df12ebe
commit 0c28556f46
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ void IgnoreAllActivation(not_null<QWidget*> widget) {
ShowWindow(handle, SW_HIDE);
const auto style = GetWindowLongPtr(handle, GWL_EXSTYLE);
SetWindowLong(
SetWindowLongPtr(
handle,
GWL_EXSTYLE,
style | WS_EX_NOACTIVATE | WS_EX_APPWINDOW);

View file

@ -213,7 +213,7 @@ void WindowShadow::init(QColor color) {
return;
}
ShadowByHandle.emplace(_handles[i], this);
SetWindowLongPtr(_handles[i], GWLP_HWNDPARENT, (LONG)_handle);
SetWindowLongPtr(_handles[i], GWLP_HWNDPARENT, (LONG_PTR)_handle);
_contexts[i] = CreateCompatibleDC(_screenContext);
if (!_contexts[i]) {