FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
API-Examples/windows/APIExample/APIExample/AGVideoTestWnd.h at master · IOXusu/API-Examples · GitHub
IOXusu
/
API-Examples
Public
forked from
AgoraIO/API-Examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
API-Examples
/
windows
/
APIExample
/
APIExample
/
AGVideoTestWnd.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (30 loc) · 967 Bytes
Breadcrumbs
API-Examples
/
windows
/
APIExample
/
APIExample
/
AGVideoTestWnd.h
Copy path
File metadata and controls
45 lines (30 loc) · 967 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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);
};
Back
|
FazBrowse Home
|
New Git URL