在用代码进行远程连接的时候需要设置全屏属性,此时调用 IMsTscSecuredSettings::put_Fullscreen方法参数设置为TRUE即可。
IMsRdpClient::FullScreen property
Syntax
HRESULT put_FullScreen( [in] VARIANT_BOOL fFullScreen ); HRESULT get_FullScreen( [out] VARIANT_BOOL *pfFullScreen );
Property value
True to enter full-screen mode, False to leave full-screen mode and return to window mode.
Error codes
If the methods succeed, S_OK is returned. Any other HRESULT value indicates that the call failed.
You can set this property when the control is connected.
You must call the IMsRdpClientNonScriptable3::put_ConnectionBarText method before you call the IMsTscSecuredSettings::put_Fullscreen method or theIMsRdpClient::put_Fullscreen method.
For more information about Remote Desktop Web Connection, see Requirements for Remote Desktop Web Connection.
本文介绍如何使用IMsTscSecuredSettings::put_Fullscreen方法实现远程桌面连接的全屏模式切换。通过设置参数为TRUE进入全屏模式,FALSE则退出全屏返回窗口模式。此外,还介绍了设置连接栏文本的方法。
1136

被折叠的 条评论
为什么被折叠?



