forked from DBCTRADO/TVTest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAero.h
More file actions
45 lines (36 loc) · 798 Bytes
/
Copy pathAero.h
File metadata and controls
45 lines (36 loc) · 798 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef AERO_H
#define AERO_H
class CAeroGlass
{
public:
CAeroGlass();
~CAeroGlass();
bool IsEnabled();
bool ApplyAeroGlass(HWND hwnd,const RECT *pRect);
bool EnableNcRendering(HWND hwnd,bool fEnable);
private:
HMODULE m_hDwmLib;
bool LoadDwmLib();
};
class CBufferedPaint
{
public:
CBufferedPaint();
~CBufferedPaint();
HDC Begin(HDC hdc,const RECT *pRect,bool fErase=false);
bool End(bool fUpdate=true);
bool Clear(const RECT *pRect=NULL);
bool SetAlpha(BYTE Alpha);
bool SetOpaque() { return SetAlpha(255); }
static bool Initialize();
static bool IsSupported();
private:
HANDLE m_hPaintBuffer;
};
class CDoubleBufferingDraw
{
public:
virtual void Draw(HDC hdc,const RECT &PaintRect) = 0;
void OnPaint(HWND hwnd);
};
#endif