?? teach_road_36.htm
字號:
<html><head><meta http-equiv="Content-Type"content="text/html; charset=gb_2312-80"><title>VC Road</title><style type="text/css" MEDIA="screen"><!--a {text-decoration: underline;}a:hover {color:red; text-decoration:underline}small {color: navy; font-size: 12px ; line-height:16px;}h1 {color: navy; font-size: 12px ; line-height:16px;}
big {color: navy; font-size: 22px ; line-height:26px;}
td {color: navy; font-size: 12px ; line-height:16px;bgcolor="#FFCFA3";}--></style></head>
<body background="../img/ground.gif">
<p align="center"><a
HREF="http://www.0828.com/pay/cgi-bin/random.cgi?job=go&id=820"
target="_blank">
<img SRC="http://www.0828.com/pay/cgi-bin/random.cgi?id=820" BORDER="0"
width="468" height="60"></a><br>
<font size="2"><a href="http://www.0828.com/pay/index.html" target=_blank><img border="0"
src="http://www.0828.com/pay/code.gif" width="468" height="15"></a><br><small>你每點一下上面的廣告我就能有更多的上網(wǎng)時間為大家尋找資料</small></font>
</p>
<p align=center><big>3.6 MFC中所提供的各種視類介紹</big></p><table border=0 align=center width=80%>
<tr><td>
<small>
<p>MFC中提供了豐富的視類供開發(fā)者使用,下面對各個類進行介紹:</p>
<p>CView類是最基本的視類只支持最基本的操作。</p>
<p>CScrollView類提供了滾動的功能,你可以利用void CScrollView::SetScrollSizes( int nMapMode, SIZE sizeTotal, const SIZE& sizePage = sizeDefault, const SIZE& sizeLine = sizeDefault )設(shè)置滾動尺寸,和坐標(biāo)映射模式。但是在繪圖和接收用戶輸入時需要對坐標(biāo)進行轉(zhuǎn)換。請參見<a href=teach_road_32.htm>3.2 接收用戶輸入</a>。</p>
<p>CFormView類提供用戶在資源文件中定義界面的能力,并可以將子窗口和變量進行綁定。通過UpdateData函數(shù)讓數(shù)據(jù)在變量和子窗口間交換。</p>
<p>CTreeView類利用TreeCtrl界面作為視界面,通過調(diào)用CTreeCtrl& CTreeView::GetTreeCtrl( ) const得到CTreeCtrl的引用。</p>
<p>CListView類利用ListCtrl界面作為視界面,通過調(diào)用CTreeCtrl& CTreeView::GetTreeCtrl( ) const得到CListCtrl的引用。</p>
<p>CEditView類利用Edit接收用戶輸入,它具有輸入框的一切功能。通過調(diào)用CEdit& CEditView::GetEditCtrl( ) const得到Edit&的引用。void CEditView::SetPrinterFont( CFont* pFont )可以設(shè)置打印字體。</p>
<p>CRichEditView類作為Rich Text Edit(富文本輸入)的視類,提供了可以按照格式顯示文本的能力,在使用時需要CRichEditDoc的支持。</p>
<p align=center><a href=teach_first.htm#charpter3>返回</a></p>
</td></tr>
</table>
<p align=center><small>版權(quán)所有 聞怡洋 <a href=http://vchelp.163.net/>http://vchelp.163.net/</a></small></p>
<!-- 耐特付費廣告代碼開始 不得修改. -->
<center><script language="javascript">
<!--
var date = new Date();
var ra = date.getTime() % 1000;
var ua = document.URL;
document.write("<iframe src='http://www.china-free.com/cgi-bin/ad/random.cgi?id=560' width=468 height=60 scrolling=no marginwidth=0 marginheight=0 frameborder=0 vspace=0 hspace=0 >");
document.write("<a href='http://www.china-free.com/cgi-bin/ad/random.cgi?id=560' target='_blank'>");
document.write("<img src='http://www.china-free.com/cgi-bin/ad/random.cgi?job=go&id=560' width=468 height=60 border=0></a>");
document.write("</iframe>");
//-->
</script>
<noscript>
<a target="_blank" href="http://www.china-free.com/cgi-bin/ad/random.cgi?id=560">
<img src="http://www.china-free.com/cgi-bin/ad/random.cgi?job=go&id=560" width="468" height="60" border="0"></a>
</noscript>
<br><a HREF="http://www.china-free.com/ad" target="_blank"><img SRC="http://www.china-free.com/ad/bd.gif" BORDER="0" ></a></center>
<!-- 耐特付費廣告代碼結(jié)尾. -->
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -