check_for_enter.shtml.htm
来自「mfc资料集合5」· HTM 代码 · 共 31 行
HTM
31 行
<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" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000">
<table WIDTH="100%">
<tr WIDTH="100%">
<td><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 + =
减小字号Ctrl + -
显示快捷键?