5#ifndef WIN32WINDOWCONTEXT_P_H
6#define WIN32WINDOWCONTEXT_P_H
17#include <QWKCore/qwindowkit_windows.h>
18#include <QWKCore/private/abstractwindowcontext_p.h>
22 class Win32WindowContext :
public AbstractWindowContext {
26 ~Win32WindowContext()
override;
38 QString key()
const override;
39 void virtual_hook(
int id,
void *data)
override;
41 QVariant windowAttribute(
const QString &key)
const override;
44 void winIdChanged(WId winId, WId oldWinId)
override;
45 bool windowAttributeChanged(
const QString &key,
const QVariant &attribute,
46 const QVariant &oldAttribute)
override;
49 bool windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result);
51 bool systemMenuHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam,
58 bool snapLayoutHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam,
61 bool customWindowHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam,
64 bool nonClientCalcSizeHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam,
69 WindowPart lastHitTestResult = WindowPart::Outside;
70 int lastHitTestResultRaw = HTNOWHERE;
74 bool mouseLeaveBlocked =
false;
77 uint64_t iconButtonClickTime = 0;
78 int iconButtonClickLevel = 0;
81 bool noSystemMenu =
false;
86 RECT frameRectBeforeWinIdChange{};
87 bool hasFrameRectBeforeWinIdChange =
false;
88 RECT pendingFrameRectAfterWinIdChange{};
89 bool hasPendingFrameRectAfterWinIdChange =
false;
90 bool restoringFrameRectAfterWinIdChange =
false;
QWindowKit namespace.
Definition abstractwindowcontext.cpp:13