Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
DesktopWindows.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CDESKTOPWINDOWS_H
4#define CDESKTOPWINDOWS_H
5
6#pragma once
7#include "Desktop.h"
8
10{
11 Q_OBJECT
12public:
13 explicit CDesktopWindows(QObject *parent = nullptr);
14 virtual ~CDesktopWindows() override;
15
16 virtual int Width() override;
17 virtual int Height() override;
18 virtual QImage GetDesktop() override;
19 virtual QImage GetDesktop(int x, int y, int width, int height) override;
20 virtual QImage GetCursor(QPoint &pos, QPoint &posHot) override;
21 virtual QPoint GetCursorPosition() override;
22
23private:
24 HDC m_DC;
25 HDC m_MemDC;
26 HBITMAP m_Bitmap, m_DesktopBitmap;
27 int m_Width, m_Height;
28 QImage m_Desktop;
29
30 HDC GetDesktopDC();
31};
32
33#endif // CDESKTOPWINDOWS_H