Help Center/ Meeting/ Client SDK Reference/ Windows SDK/ APIs/ UI Customization/ Setting Whether to Automatically Hide the Meeting Control Bar
Updated on 2024-12-27 GMT+08:00

Setting Whether to Automatically Hide the Meeting Control Bar

SetAutoHideToolBar

API Description

This API is used to set whether to automatically hide the meeting control bar.

Precautions

  1. By default, the meeting control bar is automatically hidden after a period of inactivity with the mouse. This setting is only applicable during a meeting session and will revert to its default state once you leave the meeting.

Method Definition

1
HWM_SDK_AGENT_API hwmsdk::HwmErrCode SetAutoHideToolBar(const HwmAutoHideToolBarParam* autoHideToolBarParam);

Parameter Description

Table 1 HwmAutoHideToolBarParam description

Parameter

Type

Description

isAutoHide

bool

Whether to automatically hide the meeting control bar.

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
/**
* Set whether to automatically hide the meeting control bar.
*/
void demoSetAutoHideToolBarDlg::OnBnClickedOk()
{
    hwmsdkagent::HwmAutoHideToolBarParam param{};
    param.isAutoHide = m_isAutoHide.GetCheck();
    int ret = hwmsdkagent::SetAutoHideToolBar(handles, realCount);

    if (hwmsdk::HWM_COMMON_SUCCESS != ret)
    {
        AfxMessageBox(_T("SetAutoHideToolBar error"));
        return;
    }
}