📄 l3.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">可以调用Application->Minimize函数来最小化应用程序到任务条。如何你希望你的程序启动时就最小化,只需在调用Run方法前调用Application->Minimize就行了。</font></p>
<pre><span style="BACKGROUND-COLOR: silver"><font color="#000000">WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, </font></span><font color="#000000"><span style="BACKGROUND-COLOR: silver"><b>int</b>)</span>
<span style="BACKGROUND-COLOR: silver">{</span>
<span style="BACKGROUND-COLOR: silver"> <b>try</b></span>
<span style="BACKGROUND-COLOR: silver"> {</span>
<span style="BACKGROUND-COLOR: silver"> Application->Initialize();</span>
<span style="BACKGROUND-COLOR: silver"> Application->CreateForm(<b>__classid</b>(TForm1), &Form1);</span>
<span style="BACKGROUND-COLOR: silver"> Application->Minimize(); //以最小化方式启动</span>
<span style="BACKGROUND-COLOR: silver"> Application->Run();</span>
<span style="BACKGROUND-COLOR: silver"> }</span>
<span style="BACKGROUND-COLOR: silver"> <b>catch</b> (Exception &exception)</span>
<span style="BACKGROUND-COLOR: silver"> {</span>
<span style="BACKGROUND-COLOR: silver"> Application->ShowException(&exception);</span>
<span style="BACKGROUND-COLOR: silver"> }</span>
<span style="BACKGROUND-COLOR: silver"> <b>return</b> 0;</span>
<span style="BACKGROUND-COLOR: silver">}</span></font></pre>
</td>
</tr>
</table>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -