⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index029.htm

📁 一本不错的VC编程的参考书
💻 HTM
字号:
<html>
<style type="text/css"><!--
.p9 {  font-family: "宋体"; font-size: 9pt}a        {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../di2001.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">如何使能和禁止工具条的工具提示</font></td></tr>
<tr><td><p>
</Br>
如果设置了CBRS_TOOLTIPS风格位,工具条将显示工具提示,要使能或者禁止工具提示,需要设置或者清除该风格位。下例通过调用CControlBar : : GetBarStyle和CControlBar : : SetBarStyle建立一个完成此功能的成员函数:<Br>
void CMainFrame : : EnableToolTips ( BOOL bDisplayTips )<Br>
{<Br>
&nbsp;ASSERT_VALID (m_wndToolBar)<Br>
</Br>
&nbsp;DWORD dwStyle = m _wndToolBar.GetBarStyle ( )<Br>
</Br>
&nbsp;if (bDisplayTips) dwStyle |=CBRS_TOOLTIPS<Br>
</Br>
&nbsp;else<Br>
&nbsp;dwStyle & = ~CBRS_TOOLTIPS<Br>
</Br>
&nbsp;m_wndToolBar.SetBarStyle (dwStyle )<Br>
}<Br>
</Br>
</p></td></tr>
</table>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -