From 51039917996909284fbc2d776a9b8f71fe5e6f9a Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周六, 02 12月 2023 17:43:17 +0800 Subject: [PATCH] wip --- src/core/contexts/win32windowcontext_p.h | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/contexts/win32windowcontext_p.h b/src/core/contexts/win32windowcontext_p.h index f1ab71e..ff6fea5 100644 --- a/src/core/contexts/win32windowcontext_p.h +++ b/src/core/contexts/win32windowcontext_p.h @@ -8,18 +8,19 @@ class QWK_CORE_EXPORT Win32WindowContext : public AbstractWindowContext { Q_OBJECT + Q_DISABLE_COPY(Win32WindowContext) + public: - Win32WindowContext(QWindow *window, WindowItemDelegate *delegate); - ~Win32WindowContext(); + Win32WindowContext(QWindow *window, WindowItemDelegatePtr delegate); + ~Win32WindowContext() override; public: bool setup() override; + bool windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); + protected: WId windowId; - WNDPROC qtWindowProc; // Original Qt window proc function - - static LRESULT windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); }; } -- Gitblit v1.9.1