| | |
| | | class QWK_CORE_EXPORT Win32WindowContext : public AbstractWindowContext { |
| | | Q_OBJECT |
| | | public: |
| | | Win32WindowContext(QWindow *window, WindowItemDelegate *delegate); |
| | | Win32WindowContext(); |
| | | ~Win32WindowContext() override; |
| | | |
| | | enum WindowPart { |
| | |
| | | }; |
| | | |
| | | public: |
| | | bool setup() override; |
| | | bool setup(QObject *host, WindowItemDelegate *delegate) override; |
| | | |
| | | bool windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); |
| | | |
| | |
| | | bool snapLayoutHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, |
| | | LRESULT *result); |
| | | |
| | | bool customWindowHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, |
| | | LRESULT *result); |
| | | |
| | | protected: |
| | | WId windowId = 0; |
| | | |
| | |
| | | // Whether the last mouse leave message is blocked, mainly for handling the unexpected |
| | | // WM_MOUSELEAVE. |
| | | bool mouseLeaveBlocked = false; |
| | | |
| | | bool centered = false; |
| | | }; |
| | | |
| | | } |