简体   繁体   English

如何识别浏览器栏(Internet Explorer)是否隐藏?

[英]How to identify an Explorer Bar(Internet Explorer) is hidden or not?

I can make an Explorer bar show/hide using IWebBrowser2::ShowBrowserBar Method. 我可以使用IWebBrowser2 :: ShowBrowserBar方法显示/隐藏资源管理器栏。 I want to use a single button to toggle between Show/Hide. 我想使用一个按钮在“显示/隐藏”之间切换。 There is a parameter for ShowBrowserBar to set for Show/Hide. ShowBrowserBar有一个参数可以设置为“显示/隐藏”。 How will I get the status of the explore bar now? 我现在如何获得探索栏的状态?

Couldn't you just check the value of pvaShow to get the status of the bar? 您不能只检查pvaShow的值来获取栏的状态吗? IWebBrowser2::ShowBrowserBar Method IWebBrowser2 :: ShowBrowserBar方法

pvaShow [in] A pointer to a VARIANT of type VT_BOOL that specifies whether the browser bar should be shown or hidden. pvaShow [in]指向VT_BOOL类型的VARIANT的指针,该指针指定是显示浏览器栏还是隐藏浏览器栏。 If this is nonzero, the browser bar is shown. 如果非零,则显示浏览器栏。 If this is zero, the browser bar is hidden. 如果为零,则浏览器栏被隐藏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM