📄 vcc82.htm
字号:
<html>
<head>
<title>c++系列</title>
<meta content="text/html; charset=gb2312" http-equiv=Content-Type>
</head>
<p align="center"><script src="../../1.js"></script></a>
<body bgcolor="#ffffff" leftmargin="5" topmargin="1" marginheight="5" marginwidth="5">
<div align=center>
<table border=0 cellpadding=0 cellspacing=0 width=680 align="center">
<tbody>
<tr>
<td width=200 height="59">
</tr>
</tbody>
</table>
<table border=1 bordercolordark=#ffffff bordercolorlight=#ffffff cellpadding=0
cellspacing=0 width=685 align="center" height="70">
<tbody>
<tr>
<td bgcolor=#F9D23C height=14>
<div align=center class=H1><font color="#FFFFFF">Dialog Bar</font></div>
</td>
</tr>
<tr valign=top>
<td class=H1 height=51>
<p align="left"> <span class="unnamed1">Dialog Bar类似一个静态的附在框架窗口上的对话框,由于Dialog
Bar可以使用资源编辑器进行编辑所以使用起来就很方便,在设计时就可以对Dialog Bar上的子窗口进行定位。用于显示一些提示字符。MFC中使用CDialogBar类来Dialog
Bar控件的各种操作。通过调用<br>
BOOL Create( CWnd* pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID
);创建一个窗口,nIDTemplate为对话框资源,nID为该Dialog Bar对应的窗口ID,nStyle中可以使用以下一些状态条控件的专用风格:
</span></small> </p>
<ul>
<li class="unnamed1"> <b>CBRS_TOP</b> Dialog Bar在父窗口的顶部</small>
<li class="unnamed1"> <b>TCBRS_BOTTOM</b> Dialog Bar在父窗口的底部</small>
<li class="unnamed1"> <b>CBRS_LEFT</b> Dialog Bar在父窗口的左部</small>
<li class="unnamed1"> <b>CBRS_RIGHT</b> Dialog Bar在父窗口的右部</small>
</li>
</ul>
<p class="unnamed1"> 对于Dialog Bar的所产生消息需要在父窗口中进行映射和处理,例如Dialog Bar上的按钮,需要在父窗口中进行ON_BN_CLICKED或ON_COMMAND映射,Dialog
Bar上的输入框可以在父窗口中进行ON_EN_CHANGE,ON_EN_MAXTEXT等输入框对应的映射。 </small></p>
<p class="unnamed1"><small>Dialog Bar支持ON_UPDATE_COMMAND_UI的相关操作,如SetText,Enable。</small></p>
<small>在以后的章节4.D 利用<font class=engul>AppWizard</font>创建并使用<font class=engul>ToolBar
StatusBar Dialog Bar</font>会给出使用的方法。</small></span>
<div align="left"> </div>
</td>
</tr>
</tbody>
</table>
</div>
<p align="center"><script src="../../2.js"></script></a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -