We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1735c22 + 5cad3eb commit ea7604dCopy full SHA for ea7604d
1 file changed
windows/APIExample/APIExample/Advanced/ScreenShare/AgoraScreenCapture.cpp
@@ -479,7 +479,9 @@ void CAgoraScreenCapture::GetCaptureParameterFromCtrl(agora::rtc::ScreenCaptureP
479
else
480
capParam.frameRate = _ttoi(str);
481
HWND hWnd = NULL;
482
- hWnd = m_listWnd.GetAt(m_listWnd.FindIndex(m_cmbScreenCap.GetCurSel()));
+ if (m_cmbScreenCap.GetCurSel() > 0)
483
+ hWnd = m_listWnd.GetAt(m_listWnd.FindIndex(m_cmbScreenCap.GetCurSel()));
484
+ capParam.excludeWindowList = (view_t*)hWnd;
485
capParam.excludeWindowList = (view_t*)hWnd;
486
capParam.windowFocus = m_chkWndFocus.GetCheck();
487
capParam.excludeWindowCount = 1;
0 commit comments