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

📄 subject_39483.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:39483 发表者:luckyding 发表日期:2003-05-11 13:38:08
<br>主题:窗口的问题
<br>内容:请问如何得到一个窗口当前的显示状态,比如说最大化,或者最小化等。窗口的句柄已经得到
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:Justin Le 回复日期:2003-05-11 14:53:00
<br>内容:例如:<BR>if (IsIconic())<BR>{<BR>&nbsp;&nbsp; CPaintDC dc(this); // device context for painting<BR><BR>&nbsp;&nbsp; IconEraseBkgnd(dc);<BR><BR>&nbsp;&nbsp; // Center icon in client rectangle<BR>&nbsp;&nbsp; int cxIcon = GetSystemMetrics(SM_CXICON);<BR>&nbsp;&nbsp; int cyIcon = GetSystemMetrics(SM_CYICON);<BR>&nbsp;&nbsp; CRect rect;<BR>&nbsp;&nbsp; GetClientRect(&amp;rect);<BR>&nbsp;&nbsp; int x = (rect.Width() - cxIcon + 1) / 2;<BR>&nbsp;&nbsp; int y = (rect.Height() - cyIcon + 1) / 2;<BR><BR>&nbsp;&nbsp; // Draw the icon<BR>&nbsp;&nbsp; dc.DrawIcon(x, y, m_hIcon);<BR>}<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

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