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

📄 check_for_enter.shtml

📁 mfc资源大全包含MFC编程各个方面的源码
💻 SHTML
字号:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="Zafir Anjum">
   <TITLE>Controls - Checking for Enter Key Presses</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000">
<table WIDTH="100%">
<tr WIDTH="100%">
<td align=center><!--#exec cgi="/cgi/ads.cgi"--><td>
</tr>
</table>

<CENTER><H3><FONT COLOR="#AOAO99">Checking for Enter Key Presses</FONT></H3></CENTER>
<HR>





This article was contributed by <A HREF="mailto:lauram3017@aol.com">Laura Michaels</A>.



<P>This tip explains how to check if the enter key is pressed for
controls that don't support easy checking.

<P>If you have a push button and want to check if the user presses
enter, you can use the BN_CLICKED message, but some controls
such as list boxes and combo boxes don't provide an easy way to 
check for the enter key.

⌨️ 快捷键说明

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