Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowscontext.cpp File Reference
#include "qwindowscontext.h"
#include "qwindowsintegration.h"
#include "qwindowswindow.h"
#include "qwindowskeymapper.h"
#include "qwindowsnativeinterface.h"
#include "qwindowsmousehandler.h"
#include "qwindowspointerhandler.h"
#include "qtwindowsglobal.h"
#include "qwindowsmenu.h"
#include "qwindowsmimeregistry.h"
#include "qwindowsinputcontext.h"
#include "qwindowstheme.h"
#include <private/qguiapplication_p.h>
#include "qwindowsscreen.h"
#include <QtGui/qwindow.h>
#include <qpa/qwindowsysteminterface.h>
#include <qpa/qwindowsysteminterface_p.h>
#include <qpa/qplatformnativeinterface.h>
#include <QtGui/qguiapplication.h>
#include <QtGui/qopenglcontext.h>
#include <QtGui/qpointingdevice.h>
#include <QtCore/qset.h>
#include <QtCore/qhash.h>
#include <QtCore/qlibraryinfo.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qdebug.h>
#include <QtCore/qsysinfo.h>
#include <QtCore/qscopedpointer.h>
#include <QtCore/quuid.h>
#include <QtCore/private/qwinregistry_p.h>
#include <QtCore/private/qfactorycacheregistration_p.h>
#include <QtCore/private/qsystemerror_p.h>
#include <QtGui/private/qwindowsguieventdispatcher_p.h>
#include <stdlib.h>
#include <stdio.h>
#include <windowsx.h>
#include <dbt.h>
#include <wtsapi32.h>
#include <shellscalingapi.h>
+ Include dependency graph for qwindowscontext.cpp:

Go to the source code of this file.

Classes

struct  QWindowsContextPrivate
 

Macros

#define LANG_SYRIAC   0x5a
 

Functions

static bool useRTL_Extensions ()
 
static bool sessionManagerInteractionBlocked ()
 
LRESULT QT_WIN_CALLBACK qWindowsPowerWindowProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 
static QtWindows::DpiAwareness dpiAwarenessContextToQtDpiAwareness (DPI_AWARENESS_CONTEXT context)
 
static DPI_AWARENESS_CONTEXT qtDpiAwarenessToDpiAwarenessContext (QtWindows::DpiAwareness dpiAwareness)
 
QDebug operator<< (QDebug d, QtWindows::DpiAwareness dpiAwareness)
 
static bool findPlatformWindowHelper (const POINT &screenPoint, unsigned cwexFlags, const QWindowsContext *context, HWND *hwnd, QWindowsWindow **result)
 Find a child window at a screen point.
 
static QWindowsInputContextwindowsInputContext ()
 
static bool isInputMessage (UINT m)
 
static bool enableNonClientDpiScaling (HWND hwnd)
 

Macro Definition Documentation

◆ LANG_SYRIAC

#define LANG_SYRIAC   0x5a

Definition at line 80 of file qwindowscontext.cpp.

Function Documentation

◆ dpiAwarenessContextToQtDpiAwareness()

static QtWindows::DpiAwareness dpiAwarenessContextToQtDpiAwareness ( DPI_AWARENESS_CONTEXT  context)
inlinestatic

◆ enableNonClientDpiScaling()

static bool enableNonClientDpiScaling ( HWND  hwnd)
static

Definition at line 974 of file qwindowscontext.cpp.

References QtWindows::PerMonitor, qErrnoWarning(), and QWindowsContext::windowDpiAwareness().

Referenced by QWindowsContext::windowsProc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findPlatformWindowHelper()

static bool findPlatformWindowHelper ( const POINT &  screenPoint,
unsigned  cwexFlags,
const QWindowsContext context,
HWND *  hwnd,
QWindowsWindow **  result 
)
inlinestatic

Find a child window at a screen point.

Deep search for a QWindow at global point, skipping non-owned windows (accessibility?). Implemented using ChildWindowFromPointEx() instead of (historically used) WindowFromPoint() to get a well-defined behaviour for hidden/transparent windows.

cwex_flags are flags of ChildWindowFromPointEx(). parent is the parent window, pass GetDesktopWindow() for top levels.

Definition at line 758 of file qwindowscontext.cpp.

References child, context, screenToClient(), and window().

Referenced by QWindowsContext::findPlatformWindowAt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isInputMessage()

static bool isInputMessage ( UINT  m)
inlinestatic

Definition at line 946 of file qwindowscontext.cpp.

References WM_TOUCH.

Referenced by QWindowsContext::windowsProc().

+ Here is the caller graph for this function:

◆ operator<<()

◆ qtDpiAwarenessToDpiAwarenessContext()

static DPI_AWARENESS_CONTEXT qtDpiAwarenessToDpiAwarenessContext ( QtWindows::DpiAwareness  dpiAwareness)
inlinestatic

◆ qWindowsPowerWindowProc()

LRESULT QT_WIN_CALLBACK qWindowsPowerWindowProc ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 286 of file qwindowscontext.cpp.

References QGuiApplication::topLevelWindows(), Qt::WindowMinimized, and QWindowsWindow::windowsWindowOf().

Referenced by QWindowsContext::initPowerNotificationHandler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sessionManagerInteractionBlocked()

static bool sessionManagerInteractionBlocked ( )
inlinestatic

Definition at line 118 of file qwindowscontext.cpp.

Referenced by QWindowsContext::windowsProc().

+ Here is the caller graph for this function:

◆ useRTL_Extensions()

static bool useRTL_Extensions ( )
inlinestatic

Definition at line 83 of file qwindowscontext.cpp.

References QScopedPointer< T, Cleanup >::data(), i, and LANG_SYRIAC.

Referenced by QWindowsContextPrivate::QWindowsContextPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ windowsInputContext()

static QWindowsInputContext * windowsInputContext ( )
inlinestatic

Definition at line 926 of file qwindowscontext.cpp.

References QWindowsIntegration::instance().

Referenced by QWindowsContext::windowsProc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: