index002.htm

来自「关于vc的一本问题集,很不错的,有很多精采的问题」· HTM 代码 · 共 23 行

HTM
23
字号

<html>
<style type="text/css"><!--
.p9 {  font-family: "宋体"; font-size: 9pt}a        {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../../../backg.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">如何通过代码获得应用程序主窗口的 指针?</font></td></tr>
<tr><td><p>
</Br>
主窗口的 指针保存在CWinThread::m_pMainWnd中,调用AfxGetMainWnd实现。<Br>
&nbsp;AfxGetMainWnd() ->ShowWindow(SW_SHOWMAXMIZED)<Br>
//使程序最大化.<Br>
</Br>
</p></td></tr>
</table><p align="center"><img src="../../../logo.gif" align="center"><center><table><tr><td><a href="http://www.ourcode.net" target=_top>www.OurCode.net</a><Br>版权所有: 2002-2008</a></td></tr></table></center></p>
</body>

</html>

⌨️ 快捷键说明

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