mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
Adaptation for WinXP
This commit is contained in:
@ -269,12 +269,13 @@ core_windows {
|
||||
-lcredui \
|
||||
-lnetapi32 \
|
||||
-lcomctl32 \
|
||||
-lrpcrt4 \
|
||||
-ldwmapi
|
||||
-lrpcrt4
|
||||
# -lOpenGL32
|
||||
|
||||
build_xp {
|
||||
DEFINES += __OS_WIN_XP
|
||||
} else {
|
||||
LIBS += -ldwmapi
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -58,8 +58,10 @@ CWindowPlatform::CWindowPlatform(const QRect &rect) :
|
||||
m_hWnd = (HWND)winId();
|
||||
DWORD style = ::GetWindowLong(m_hWnd, GWL_STYLE);
|
||||
::SetWindowLong(m_hWnd, GWL_STYLE, style | WS_MAXIMIZEBOX | WS_THICKFRAME | WS_CAPTION);
|
||||
#ifndef __OS_WIN_XP
|
||||
const MARGINS shadow = {1, 1, 1, 1};
|
||||
DwmExtendFrameIntoClientArea(m_hWnd, &shadow);
|
||||
#endif
|
||||
connect(this->window()->windowHandle(), &QWindow::screenChanged, this, [=]() {
|
||||
QTimer::singleShot(50, this, [=]() {
|
||||
resize(size() + QSize(1,1));
|
||||
|
||||
Reference in New Issue
Block a user