Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/src/updater/win32_window_util.h
7197 views
1
// SPDX-FileCopyrightText: 2019-2025 Connor McLaughlin <[email protected]>
2
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
3
4
#pragma once
5
6
#include "common/windows_headers.h"
7
8
namespace Win32WindowUtil {
9
10
/// Centers a window on the monitor where the mouse cursor is currently located.
11
/// Should be called before ShowWindow().
12
void CenterWindowOnMonitorAtCursorPosition(HWND hwnd);
13
14
} // namespace Win32WindowUtil
15
16