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

📄 使你的对话框基础的应用程序.htm

📁 VC的一些技巧性文档
💻 HTM
字号:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta name="description"content="Code Jockey - Dedicated to MFC Professionals, free MFC help and controls"><meta name="keywords"content="visual c, mfc, ocx, dll, controls, Outlook, Visual Studio, Internet Explorer, CDialogBar, CControlBar, CToolBar, CFrameWnd, CMDIFrameWnd, CDockBar, CTreeCtrl, CListBox"><title>CodeJockey : Terms of Use</title></head><body bgcolor="#FFFFFF"><!-- FC HP BN1 START --><!-- Please do not remove the line above or the code within this section --><!-- Doing so may cause damage to your pages or insertion of multiple banners--><center><p><table border="0" cellspacing="0" cellpadding="0"><tr><td colspan="11"><img src="http://www.fortunecity.com/console2/newnav/top.gif" height="7" width="555"></td></tr><tr><td><img src="http://www.fortunecity.com/console2/newnav/left.gif" alt="FC Navigation Console" height="60" width="72" border="0" usemap="#fcleft"><map name="fcleft"><area shape="rect" coords="10,43,64,60" href="http://www2.fortunecity.com/cgi-bin/homepage/estate.pl?referer=navbar" target="_top"><area shape="rect" coords="9,21,61,36" href="http://www2.fortunecity.com/cgi-bin/showarea.pl?area=skyscraper&referer=navbar" target="_top"><area shape="rect" coords="8,0,62,15" href="http://www.fortunecity.com" target="_top"><area shape="rect" href="http://www.fortunecity.com" target="_top" coords="0,0,49,49"></map></td><td colspan="9"><A HREF="http://ad.doubleclick.net/jump/fc.us468/member/tech;s1=m;s3=tech;pos=1;tag=g;sz=468x60;mtile=1;num=55355?"><IMG SRC="http://ad.doubleclick.net/ad/fc.us468/member/tech;s1=m;s3=tech;pos=1;tag=g;sz=468x60;mtile=1;num=55355?" border=0 height="60" width="468"></A></td><td><img src="http://www.fortunecity.com/console2/newnav/right.gif" width="15" height="60"></td></tr><tr><td><img src="http://www.fortunecity.com/console2/newnav/left2.gif" height="31" width="72" target="_top"></td><td><img src="http://www.fortunecity.com/console2/newnav/gap1.gif" width="17" height="31"></td><td><a href="http://adex3.flycast.com/server/socket/127.0.0.1:2800/click/FortuneCitycom/NavBar1/55355" target="_top"><img src="http://adex3.flycast.com/server/socket/127.0.0.1:2800/ad/FortuneCitycom/NavBar1/55355" border="0" width="88" height="31"></a></td><td><img src="http://www.fortunecity.com/console2/newnav/gap2.gif" width="24" height="31"></td><td><a href="http://adex3.flycast.com/server/socket/127.0.0.1:2800/click/FortuneCitycom/NavBar2/55355" target="_top"><img src="http://adex3.flycast.com/server/socket/127.0.0.1:2800/ad/FortuneCitycom/NavBar2/55355" border="0" width="88" height="31"></a></td><td><img src="http://www.fortunecity.com/console2/newnav/gap3.gif" width="24" height="31"></td><td><a href="http://adex3.flycast.com/server/socket/127.0.0.1:2800/click/FortuneCitycom/NavBar3/55355" target="_top"><img src="http://adex3.flycast.com/server/socket/127.0.0.1:2800/ad/FortuneCitycom/NavBar3/55355" border="0" width="88" height="31"></a></td><td><img src="http://www.fortunecity.com/console2/newnav/gap4.gif" width="19" height="31"></td><td><a href="http://www2.fortunecity.com/cgi-bin/homepage/navbarforward.cgi?from=nav4&referer=navbare" target="_top"><img src="http://www.fortunecity.com/console2/newnav/button4.gif" border="0" width="88" height="31"></a></td><td><img src="http://www.fortunecity.com/console2/newnav/gap5.gif" width="32" height="31"></td><td><img src="http://www.fortunecity.com/console2/newnav/right2.gif" width="15" height="31"></td></tr></table></p></center><!-- WARNING: under no circumstances remove the line below.  Doing so may damage your page.--><!-- FC HP BN1 END --><a name="top"><script language="javascript"> <!--//function showdate() {	revdate = new Date(document.lastModified);	year	= revdate.getYear();	month	= revdate.getMonth()+1;	day		= revdate.getDate();	var mon;	if(month==1)		mon="January";	if(month==2)		mon="February";	if(month==3)		mon="March";	if(month==4)		mon="April";	if(month==5)		mon="May";	if(month==6)		mon="June";	if(month==7)		mon="July";	if(month==8)		mon="August";	if(month==9)		mon="September";	if(month==10)		mon="October";	if(month==11)		mon="November";	if(month==12)		mon="December";		document.write("<font face=\"Verdana,Arial,Helvetica\" size=1>"		+ mon + " " + day + ", " + "19" + year + "</font>");} //--> </script></a><fontface="Verdana,Arial,Helvetica" size="2"><!-- START OF ARTICLE --><h2></font><font size="4" color="#008080">使你的对话框基础的应用程序也具有启动画面(Splash Screen)</font></h2><p><font size="3">请按照下面的步骤来做:</p><p>将Splash.cpp和Splash.h两个文件从样例工程中拷贝到你的工程中。添加如下代码到你的<strong>InitInstance()</strong>函数中(该函数在你的从CWinApp派生的类中):</font><fontface="Verdana,Arial,Helvetica" size="2"></p><pre><font color="#990000" size="2"><tt>#include &quot;Splash.h&quot;BOOL CDialogsplApp::InitInstance(){    CCommandLineInfo cmdInfo;    ParseCommandLine(cmdInfo);    CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);    ...    ...}<!-- end the block of source code --></tt></font>      </pre><p></font><font size="3">接下来,使用ClassWizard来添加<strong>OnCreate</strong>函数到你的对话框类中,并且添加如下代码:</p></font><font face="Verdana,Arial,Helvetica" size="2"><pre><font color="#990000" size="2"><tt>#include &quot;Splash.h&quot;int CDialogsplDlg::OnCreate(LPCREATESTRUCT lpCreateStruct){    if (CDialog::OnCreate(lpCreateStruct) == -1)        return -1;    CSplashWnd::ShowSplashScreen(this);        return 0;}<!-- end the block of source code --></tt></font>  <!-- demo project --> </pre><p></font><a href="splash.zip"><font size="3">下载样例工程-149KB</font></a></p><font size="1" face="Verdana,Arial,Helvetica"><p>&copy; 1998 Kirk Stowell. All rights reserved.</p></font></body></html>

⌨️ 快捷键说明

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