MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / SetCurVol

Method SetCurVol

windows/APIExample/APIExample/AGVideoTestWnd.cpp:90–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void CAGVideoTestWnd::SetCurVol(int nCurVol)
91{
92 if (nCurVol < 0 || nCurVol > m_nVolRange)
93 nCurVol = 0;
94 CRect rcClient;
95 GetClientRect(&rcClient);
96 m_nCurVol = nCurVol;
97 RECT lrc;
98 lrc.left = 0;
99 lrc.right = m_nVolbarWidth;
100 lrc.top = 0;
101 lrc.bottom = rcClient.Height();
102 InvalidateRect(&lrc);
103 RECT rrc;
104 rrc.left = rcClient.Width() - m_nVolbarWidth;
105 rrc.right = rcClient.Width();
106 rrc.top = 0;
107 rrc.bottom = rcClient.Height();
108 InvalidateRect(&rrc);
109}
110
111
112void CAGVideoTestWnd::OnSize(UINT nType, int cx, int cy)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected