forked from AgoraIO/API-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAGVideoTestWnd.h
More file actions
45 lines (30 loc) · 967 Bytes
/
AGVideoTestWnd.h
File metadata and controls
45 lines (30 loc) · 967 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
#pragma once
// CAGVideoTestWnd
class CAGVideoTestWnd : public CWnd
{
DECLARE_DYNAMIC(CAGVideoTestWnd)
public:
CAGVideoTestWnd();
virtual ~CAGVideoTestWnd();
HWND GetVideoSafeHwnd() { return m_wndVideoWnd.GetSafeHwnd(); };
// ÒôÁ¿Ìõָʾ
void SetVolbarColor(DWORD dwFreeColor = RGB(184, 184, 184), DWORD dwBusyColor = RGB(0, 255, 0), DWORD dwBackColor = RGB(0, 0, 0)); // É趨¿ÕÏÐÑÕÉ«
void SetVolRange(int nRange = 100);
void SetCurVol(int nCurVol = 0);
protected:
afx_msg void OnPaint();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
private:
CWnd m_wndVideoWnd; // the wnd for show video
int m_nVolbarWidth;
int m_nVolbarPos; // the vol bar pos
int m_nVolRange; // the max vol
int m_nCurVol; // the current vol
COLORREF m_crBackColor;
COLORREF m_crVolbarFreeColor;
COLORREF m_crVolbarBusyColor;
COLORREF m_crVolbarBackColor;
public:
afx_msg void OnSize(UINT nType, int cx, int cy);
};