wip
Zhao Yuhang
2023-12-02 51039917996909284fbc2d776a9b8f71fe5e6f9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef WIN32WINDOWCONTEXT_P_H
#define WIN32WINDOWCONTEXT_P_H
 
#include <QWKCore/qwindowkit_windows.h>
#include <QWKCore/private/abstractwindowcontext_p.h>
 
namespace QWK {
 
    class QWK_CORE_EXPORT Win32WindowContext : public AbstractWindowContext {
        Q_OBJECT
        Q_DISABLE_COPY(Win32WindowContext)
 
    public:
        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;
    };
 
}
 
#endif // WIN32WINDOWCONTEXT_P_H