Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
DisplayWindows.h
1#ifndef CDISPLAYWINDOWS_H
2#define CDISPLAYWINDOWS_H
3
4#pragma once
5#include "Display.h"
6
8{
9 Q_OBJECT
10public:
11 explicit CDisplayWindows(QObject *parent = nullptr);
12 virtual ~CDisplayWindows() override;
13
14 virtual int Width() override;
15 virtual int Height() override;
16 virtual QImage GetDisplay(int width, int height, int x, int y) override;
17
18private:
19 HDC m_DC;
20 HDC m_MemDc;
21 HBITMAP m_Bitmap;
22 int m_Width, m_Height;
23
24 HDC GetDesktopDC();
25};
26
27#endif // CDISPLAYWINDOWS_H