index025.htm

来自「介绍了L C &ouml O S 2&Ecirc 在TM S320VC5402 」· HTM 代码 · 共 21 行

HTM
21
字号
<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="../di2001.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>
调用CWnd: : GetCurrentMessage可以获取一个MSG指针。例如,可以使用ClassWizard将几个菜单项处理程序映射到一个函数中,然后调用GetCurrentMessage来确定所选中的菜单项。<Br>
viod CMainFrame : : OnCommmonMenuHandler ( )<Br>
{<Br>
&nbsp;//Display selected menu item in debug window .<Br>
&nbsp;TRACE ("Menu item %u was selected . \n" ,<Br>
</Br>
</p></td></tr>
</table>
</body></html>

⌨️ 快捷键说明

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