📄 read.cgi-read=10186.htm
字号:
<HTML><HEAD><TITLE>CFileDialog derived problem with CK_RETURN</TITLE>
</HEAD><BODY background="../fancyhome/back.gif" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF">
<table WIDTH="100%"> <tr WIDTH="100%"> <td><table>
<tr><td><img src="../mfc_sourcebook.jpg" tppabs="http://www.codeguru.com/mfc_sourcebook.jpg"
ALT="MFC Programmer's SourceBook" WIDTH="256"
HEIGHT="88"><td></tr>
<tr><td valign="bottom"><font SIZE="+1"
color="#a0a0ff"><b>Discussion Board</b></font></td></tr>
</table></td> <td width="40"></td>
<td align="right" valign="top"><td> </tr> </table> <hr><P ALIGN=CENTER>[ <A HREF="#Responses">Read Responses</A> | <A HREF="#PostResponse">Post a New Response</A> | <A HREF="index.cgi.htm" tppabs="http://www.codeguru.com/mfc_bbs/index.cgi">Return to the Index</A> ]
<A HREF="read.cgi-read=10249.htm" tppabs="http://www.codeguru.com/mfc_bbs/read.cgi?read=10249">Next in Thread</A><P ALIGN=CENTER><BIG><BIG><BIG><STRONG>CFileDialog derived problem with CK_RETURN</STRONG></BIG></BIG></BIG>
<P ALIGN=CENTER><EM>Posted by <STRONG><A HREF="mailto:acabadet@cartesis.com">Alexandre CABADET</A></STRONG> on <STRONG>4/23/98 4:39a.m.</STRONG></EM></P>
<!-- REMOTE_HOST: 195.25.52.225; REMOTE_ADDR: 195.25.52.225-->
<P>I have created a class derived from CFileDialog with the OFN_EXPLORER style. This class help me to organise some url shortcut like IE does.
<BR>My template has some buttons like "&Move", "&Delete", ...
<P>All works fine but when one of these buttons has the focus
<BR>the enter key doesn't call the message handler of the button. However the space key works and the message handler is called.
<P>I don't think that it's due to a default button problem... I already tried. I also tried to handle the WM_GETDLGCODE牋message in my buttons and return DLGC_UNDEFPUSHBUTTON but this doesn't work.
<BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -