📄 仿“影音传送带”界面_界面-窗口_vc源码下载_vc源动力.htm
字号:
</STRONG></TD></TR>
<TR>
<TD><IFRAME id=nadframe marginWidth=0 marginHeight=0
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/CAMZO5YR.htm"
frameBorder=0 width=760 scrolling=no height=60></IFRAME></TD></TR>
<TR bgColor=#ffffff>
<TD align=right
background=仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/menu-guest-l.gif
bgColor=#ffffff height=25> 共有 <FONT
color=red>2242</FONT> 位读者读过此文 字体颜色:<SELECT
onchange="if(this.options[this.selectedIndex].value!='') 		{do_color('fontZoom',this.options[this.selectedIndex].value);}"
size=1 name=do_color_frm> <OPTION selected>选择颜色</OPTION>
<OPTION style="COLOR: black; BACKGROUND-COLOR: black"
value=Black>黑 色</OPTION> <OPTION
style="COLOR: red; BACKGROUND-COLOR: red" value=Red>红
色</OPTION> <OPTION
style="COLOR: yellow; BACKGROUND-COLOR: yellow"
value=Yellow>黄 色</OPTION> <OPTION
style="COLOR: green; BACKGROUND-COLOR: green" value=Green>绿
色</OPTION> <OPTION
style="COLOR: orange; BACKGROUND-COLOR: orange"
value=Orange>橙 色</OPTION> <OPTION
style="COLOR: purple; BACKGROUND-COLOR: purple"
value=Purple>紫 色</OPTION> <OPTION
style="COLOR: blue; BACKGROUND-COLOR: blue" value=Blue>蓝
色</OPTION> <OPTION
style="COLOR: brown; BACKGROUND-COLOR: brown" value=Brown>褐
色</OPTION> <OPTION
style="COLOR: teal; BACKGROUND-COLOR: teal" value=Teal>墨
绿</OPTION> <OPTION
style="COLOR: navy; BACKGROUND-COLOR: navy" value=Navy>深
蓝</OPTION> <OPTION
style="COLOR: maroon; BACKGROUND-COLOR: maroon"
value=Maroon>赭 石</OPTION> <OPTION
style="COLOR: #00ffff; BACKGROUND-COLOR: #00ffff"
value=#00FFFF>粉 绿</OPTION> <OPTION
style="COLOR: #7fffd4; BACKGROUND-COLOR: #7fffd4"
value=#7FFFD4>淡 绿</OPTION> <OPTION
style="COLOR: #ffe4c4; BACKGROUND-COLOR: #ffe4c4"
value=#FFE4C4>黄 灰</OPTION> <OPTION
style="COLOR: #7fff00; BACKGROUND-COLOR: #7fff00"
value=#7FFF00>翠 绿</OPTION> <OPTION
style="COLOR: #d2691e; BACKGROUND-COLOR: #d2691e"
value=#D2691E>综 红</OPTION> <OPTION
style="COLOR: #ff7f50; BACKGROUND-COLOR: #ff7f50"
value=#FF7F50>砖 红</OPTION> <OPTION
style="COLOR: #6495ed; BACKGROUND-COLOR: #6495ed"
value=#6495ED>淡 蓝</OPTION> <OPTION
style="COLOR: #dc143c; BACKGROUND-COLOR: #dc143c"
value=#DC143C>暗 红</OPTION> <OPTION
style="COLOR: #ff1493; BACKGROUND-COLOR: #ff1493"
value=#FF1493>玫瑰红</OPTION> <OPTION
style="COLOR: #ff00ff; BACKGROUND-COLOR: #ff00ff"
value=#FF00FF>紫 红</OPTION> <OPTION
style="COLOR: #ffd700; BACKGROUND-COLOR: #ffd700"
value=#FFD700>桔 黄</OPTION> <OPTION
style="COLOR: #daa520; BACKGROUND-COLOR: #daa520"
value=#DAA520>军 黄</OPTION> <OPTION
style="COLOR: #808080; BACKGROUND-COLOR: #808080"
value=#808080>烟 灰</OPTION> <OPTION
style="COLOR: #778899; BACKGROUND-COLOR: #778899"
value=#778899>深 灰</OPTION> <OPTION
style="COLOR: #b0c4de; BACKGROUND-COLOR: #b0c4de"
value=#B0C4DE>灰 蓝</OPTION></SELECT> 【字体:<A
class=black href="javascript:fontMax()">放大</A> <A
class=black href="javascript:fontZoom(14)">正常</A> <A
class=black
href="javascript:fontMin()">缩小</A>】
</TD></TR>
<TR bgColor=#ffffff>
<TD align=right
background=仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/menu-l-guest.gif
bgColor=#ffffff height=25><FONT
color=#000000>【双击鼠标左键自动滚屏】【图片上滚动鼠标滚轮变焦图片】 </FONT></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top
background=仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/menu-guest-l.gif>
</TD></TR></TBODY></TABLE></TD></TR>
<TR vAlign=top>
<TD background=仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/menu-news.gif>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center
border=0>
<TBODY>
<TR>
<TD align=middle width="100%"><BR><FONT face=楷体_GB2312
size=+2><STRONG>仿“影音传送带”界面</STRONG></FONT>
<HR>
<BR> 发表日期:2004年12月25日
【编辑录入:<A
href="http://www.xiaozhou.net/User.asp?user=webmaster">webmaster</A>】
</TD></TR>
<TR>
<TD align=middle width="100%">
<TABLE style="TABLE-LAYOUT: fixed" cellSpacing=0 cellPadding=0
align=center border=0>
<TBODY>
<TR>
<TD align=middle width="100%"></TD></TR>
<TR>
<TD class=newstitle id=fontzoom vAlign=top><BR>
<P align=center>
最近需要在对话框中使用分割控件,也就是CSplitterWnd了,但是,CSplitterWnd只能用于CFrameWnd或CFrameWnd的子类中,在对话框中还不知道如何处理。研究我们常用的一个工具“影音传送带”,上面实现分割和我需要的差不多,于是研究了一下,原来还是可以的。</P>
<P align=left>
首先明白CSplitterWnd还是需要在CFrameWnd中创建,其实也就是我们把CFrameWnd分割了,然后将CFrameWnd放到我们需要的地点。</P>
<P align=left>
以下说明针对我提供的模仿程序代码</P>
<P align=left>
首先我们建立一个SDI的MFC框架,不要DOC支持,在CMainFrame中添加一个CTabCtrlEx的对象,CTabCtrlEx的CTabCtrl的派生类</P>
<P align=left>
然后在OnCreate中添加如下代码<BR>m_TabCtrl.Create(TCS_TABS |
TCS_FIXEDWIDTH | WS_CHILD | <BR> WS_VISIBLE |
TCS_SINGLELINE, CRect(), this,
AFX_IDW_PANE_FIRST);<BR> m_TabCtrl.SetFont(m_wndToolBar.GetFont());<BR> m_TabCtrl.InsertItem(0,
"下载");<BR> m_TabCtrl.InsertItem(1,
"代理服务器");<BR> m_TabCtrl.InsertItem(2,
"站点探测器");<BR>将其ID设置为:AFX_IDW_PANE_FIRST这样我们就不需要维护他的显示控制了,当窗体变化大小的时候,TabCtrl会自动变化大小,当然大家可以删除原来创建的那个VIEW</P>
<P
align=left>然后我们添加一个新类CTabCtrlEx,父类为CTabCtrl,增加OnCreate,OnPaint,OnSize,TCN_SELCHANGE,处理<BR>在定义中增加CTestFrameWnd的一个<FONT
color=#ff0000>指针对象</FONT>,CTestFrameWnd是CFrameWnd的派生<BR>在OnCreate中添加<BR>m_pwndFrame1
= new
CTestFrameWnd;<BR> m_pwndFrame1->Create(NULL,
"下载", WS_CHILD|WS_VISIBLE, CRect(),
this);<BR>这个对象我们必须定义为指针,而且不能主动delete,因为系统会对创建的CFrameWnd对象自动调用delete</P>
<P
align=left>OnPaint中主要处理闪烁问题(主窗体大小变化的时候,CTabCtrl默认会重画界面,从而出现闪烁),解决原理主要是修改了系统默认的处理函数OnPaint,注意不是简单的修改OnEraseBkgnd就能解决问题的,参考代码,这个还是有点用处哦。OnSize中处理m_pwndFrame1
的位置,TCN_SELCHANGE处理显示控制</P>
<P
align=left>上面需要CTestFrameWnd,当然我们就要新建CTestFrameWnd类</P>
<P
align=left>在CTestFrameWnd中唯一要做的就是虚函数OnCreateClient,代码请参考文件,主要窗体分割,比较简单就不说明了,代码写的非常简化且没有检查,这是不对的,不过这是DEMO也就不计较了,大家不要模仿</P>
<P align=left>这样框架就完成了,效果如下:</P>
<P align=left><IMG
onmousewheel="return img_zoom(event,this)" alt=""
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/20041225108554191.gif"
onload="javascript:if(this.width>screen.width-333)this.width=screen.width-333"
align=absBottom border=0><BR></P>
<P align=left><IMG
onmousewheel="return img_zoom(event,this)" alt=""
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/20041225108569162.gif"
onload="javascript:if(this.width>screen.width-333)this.width=screen.width-333"
align=absBottom border=0></P>
<P align=left><FONT color=#ff0000
size=2>申明:DEMO中代码不是很规范,希望大家不要学习</FONT></P>
<P align=left><FONT color=#0000ff
size=2>欢迎大家互相交流学习</FONT></P>
<P align=left><FONT size=2><FONT
color=#0000ff>很多信息</FONT><A
href="http://zhugang.net/"><FONT
color=#0000ff><U>http://zhugang.net</U></FONT></A><FONT
color=#0000ff> </FONT><A
href="http://www.zhugang.net/"><FONT
color=#0000ff><U>http://www.zhugang.net</U></FONT></A></FONT></P>
<P align=left> </P>
<P align=center>请点击图标下载浏览:<BR><A
href="http://www.xiaozhou.net/uploadfile/rar/2004-12/2004122595952233.rar"><IMG
onmousewheel="return img_zoom(event,this)"
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/rar.gif"
onload="javascript:if(this.width>screen.width-333)this.width=screen.width-333"
border=0></A><BR>附件</P>
<CENTER><IMG alt=""
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/ft_logo.gif"
border=0></CENTER><BR>
<DIV align=right></DIV></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width="100%" height=25>
<DIV align=center><A href="http://www.3366.net.cn/"
target=_blank><STRONG><FONT color=red>双核服务器租用599每月
QQ:363035</FONT></STRONG></A> </DIV></TD></TR>
<TR>
<TD width="100%">
<HR SIZE=1>
</TD></TR>
<TR>
<TD height=25>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="32%" bgColor=#efefef>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD bgColor=#83bdf3
height=22> <B>相关专题:</B></TD></TR>
<TR>
<TD><BR><FONT color=red>·专题1信息无</FONT>
<BR><BR><FONT color=red>·专题2信息无</FONT>
</TD></TR></TBODY></TABLE></TD>
<TD width="1%"> </TD>
<TD vAlign=top width="34%" bgColor=#efefef>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD bgColor=#83bdf3 height=22> <STRONG>
热门文章:</STRONG></TD></TR>
<TR>
<TD> · <A class=middle title=轻松实现类VC界面
href="http://www.xiaozhou.net/ReadNews.asp?NewsID=884"
target=_blank><FONT>轻松实现类VC界面</FONT></A>[24841]
</TD></TR>
<TR>
<TD> · <A class=middle title=Hotel酒店管理系统
href="http://www.xiaozhou.net/ReadNews.asp?NewsID=883"
target=_blank><FONT>Hotel酒店管理系统</FONT></A>[17734]
</TD></TR>
<TR>
<TD> · <A class=middle title=VC多线程编程资料
href="http://www.xiaozhou.net/ReadNews.asp?NewsID=340"
target=_blank><FONT>VC多线程编程资料</FONT></A>[17372]
</TD></TR>
<TR>
<TD> · <A class=middle
title=一个简单的学生成绩管理软件(ODBC开发)
href="http://www.xiaozhou.net/ReadNews.asp?NewsID=872"
target=_blank><FONT>一个简单的学生成绩管理软件</FONT></A>[14933]
</TD></TR></TBODY></TABLE></TD>
<TD width="1%"> </TD>
<TD vAlign=top width="32%" bgColor=#efefef>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD bgColor=#83bdf3
height=22> <B>相关文章:</B></TD></TR>
<TR>
<TD><FONT
color=red><BR>·没有相关文章</FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width="100%">
<HR SIZE=1>
</TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<TD width="100%"><B>相关评论:</B>(评论内容只代表网友观点,与本站立场无关!)</TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<TD width="100%"><FONT color=red><B>相关评论无</B></FONT> </TD></TR>
<TR>
<TD width="98%"
height=28></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR vAlign=top>
<TD background=仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/menu-l-guest.gif
height=25></TD></TR></TBODY></TABLE>
<TABLE class=bottom cellSpacing=0 cellPadding=0 width=760 align=center
bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD background=仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/menu-guest-l.gif>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center border=0>
<TBODY>
<TR>
<TD width=20></TD>
<TD width=255 height=20><A class=bottom
href="http://www.xiaozhou.net/Review.asp?NewsID=833"
target=_blank><IMG
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/icon1.gif"
border=0>发表、查看更多关于该信息的评论</A> </TD>
<TD width=214 height=20><A class=bottom
href="http://www.xiaozhou.net/send.asp?NewsID=833"
target=_blank><IMG
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/mail.gif"
border=0>将本信息发给好友</A> </TD>
<TD width=168><A class=bottom href="javascript:window.print()"><IMG
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/printer.gif"
border=0>打印本页</A></TD>
<TD width=90><INPUT onclick="window.close();return false;" type=button value=关闭窗口 name=close2></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD background=仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/menu-guest-t.gif
height=19></TD></TR></TBODY></TABLE>
<STYLE type=text/css>.style1 {
FONT-WEIGHT: bold; COLOR: #b9cff3; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.style2 {
COLOR: #000000
}
.style4 {
FONT-WEIGHT: bold; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif
}
</STYLE>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width=760 border=0>
<TBODY>
<TR>
<TD bgColor=#56a6ef>
<DIV align=center>
<P><BR><SPAN class=style4>Copyright</SPAN> <SPAN class=style1>©</SPAN>
<SPAN class=style4>2002-2004</SPAN> <A class=bottom
href="http://www.xiaozhou.net/" target=_blank><SPAN
class=style1>VC源动力</SPAN></A> <SPAN class=style4>All Rights
Reserved</SPAN></P>
<P><FONT color=#000000>|<A class=bottom
href="http://www.xiaozhou.net/ReadNews.asp?NewsID=833#"> 关于我们 </A>|<A
class=bottom
href="http://www.xiaozhou.net/rem.asp"> 版权声明 </A>|<A
class=bottom
href="mailto:rootAT%20NOSPAM%20xiaozhou%20dot%20net"> 广告服务 </A>|<A
class=bottom
href="http://www.xiaozhou.net/map.asp"> 网站地图 </A>|<A
class=bottom href="mailto:rootAT%20NOSPAM%20xiaozhou%20dot%20net"> 联系我们
</A>|<A class=bottom
href="http://www.xiaozhou.net/ReadNews.asp?NewsID=833#"> 帮助中心 </A>|</FONT>
</P>
<P><A class=bottom href="http://www.xiaozhou.net/rssfeed.asp"
target=_blank><IMG height=14 alt=xml聚合新闻
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/xml.gif" width=36
border=0></A></P>
<P>站长:酷狗 QQ:2081121 愁容骑士 QQ:297062247</P>
<P><A href="http://www.miibeian.gov.cn/">蜀ICP备05009422号</A></P>
<P>
<SCRIPT language=javascript
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/click.htm"></SCRIPT>
<SCRIPT language=JavaScript
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/count.htm" type=text/javascript
charset=gb2312></SCRIPT>
</P><BR><A id=clustrMapsLink
href="http://clustrmaps.com/counter/maps.php?url=http://www.xiaozhou.net"><IMG
alt="Locations of visitors to this page"
onerror="this.onError=null; this.src='http://www.meetomatic.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://clustrmaps.com/'"
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/index2.php" border=1>
</A><BR>页面执行时间:218.750毫秒
<P></P></DIV></TD></TR>
<TR>
<TD><IMG height=31 alt=""
src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/news2003-2d_07.gif" width=760>
</TD></TR></TBODY></TABLE>
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-2308560106736257";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></SCRIPT>
<SCRIPT src="仿“影音传送带”界面_界面-窗口_VC源码下载_VC源动力.files/show_ads.js"
type=text/javascript>
</SCRIPT>
</DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -