📄 o17.htm
字号:
<html>
<head>
<title>制作主窗口显示前的版权窗口</title>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" height="285">
<tr>
<td height="35">
<div align="center" class="p14"><font color="#000000">制作主窗口显示前的版权窗口</font></div>
</td>
</tr>
<tr valign="top">
<td>
<p><font color="#000000"><big>在工程文件中选File->New Form新建一个窗口,设计好窗口的外观。<br>
给窗口起名为AboutBox,源文件命名为AboutBox.Cpp<br>
选Project->Options,将新建的窗口从自动建立中去掉。<br>
选View->Project Source,打开工程文件的源文件,在下面字体加粗的句子。<br>
</big>
</font></p>
<p></p>
<p>
<pre><font color="#000000"><big>
<b>#include "AboutBox.h"</b>
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
<b> DWORD lTime;</b>
try
{
Application->Initialize();
<b>AboutBox=new TAboutBox(AboutBox);</b><u>
</u><b> AboutBox->Show();
AboutBox->Update();
lTime=GetTickCount();</b>
Application->CreateForm(__classid(TMainForm), &MainForm);
<b> while((GetTickCount()-lTime) / 1000 <3);
AboutBox->Hide();
AboutBox->Free();</b>
Application->Run();
}
catch (Exception &exception)
{
Application-><u>ShowException</u>(&exception);
}
return 0;
}
</big></font></pre>
</td>
</tr>
</table>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -