2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use new methods from lib_ui

This commit is contained in:
Ilya Fedin
2021-02-19 08:26:46 +04:00
committed by John Preston
parent f1ee5b5704
commit 15d18077b8
22 changed files with 31 additions and 670 deletions

View File

@@ -312,28 +312,6 @@ bool AutostartSupported() {
return !IsWindowsStoreBuild();
}
bool ShowWindowMenu(QWindow *window) {
const auto pos = QCursor::pos();
SendMessage(
HWND(window->winId()),
WM_SYSCOMMAND,
SC_MOUSEMENU,
MAKELPARAM(pos.x(), pos.y()));
return true;
}
Window::ControlsLayout WindowControlsLayout() {
return Window::ControlsLayout{
.right = {
Window::Control::Minimize,
Window::Control::Maximize,
Window::Control::Close,
}
};
}
} // namespace Platform
namespace {